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

21,527

Solution 1

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.)

Solution 2

This is just an addendum to Dave's answer but don't forget to change this in all the Views folders also, if you haven't. The best thing probably is to use the "Replace in Files" feature from VS (Ctrl+Shift+H) to ensure you didn't miss any occurrence.

Share:
21,527
jpo
Author by

jpo

Updated on June 29, 2020

Comments

  • jpo
    jpo almost 4 years

    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