Conflicting versions of ASP.NET Web Pages detected: specified version is "1.0.0.0", but the version in bin is "2.0.0.0" in ASP.MET MVC 3

jpo picture jpo · Dec 15, 2012 · Viewed 20.6k times · Source

I am getting the following error after installing microsoft web helper:

Conflicting versions of ASP.NET Web Pages detected: specified version is "1.0.0.0", but the version in bin is "2.0.0.0". To continue, remove files from the application's bin directory or remove the version specification in web.config.

From what I read, I might have tried instaling the wrong version. But how do i orrect this? So far, I have

  • uninstall the microsoft web helper
  • Deleted and content of the bin folder and rebuild the project
  • Replace my web.config file with a new file with all defaults (given i did not change much here or my project.

But none of these (as suggested online) worked. Any hint on how to solve this please. Ihave been at this for hours now

Answer

Dave picture Dave · Jul 9, 2013

I had this issue after upgrading to VS 2013 Express Preview.

Then I noticed there was a line in web.config that was:

 <add key="webpages:Version" value="1.0.0.0" />

Changed it to the version of system.web.webpages.dll in my bin folder:

 <add key="webpages:Version" value="3.0.0.0" />

...and the problem went away. (in your case I guess it's 2.0.0.0.)