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
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.
I'd like to add the following:
In my case, I was able to fix it the following way. First (important!), I changed the target framework to 4.6.1, reloaded the solution, then upgraded the binary packages by using NUGET.
Then, after fixing the issue as described by the solution above, I got additionally the errors:
The relevant part of the root
Web.config
was looking like this:After changing that to:
it was instantly working.
Note that:
I also changed the property copy local to true for each System.Web.* assemblies.
In some projects, the section group
sectionGroup name="system.web.webPages.razor"
might as well be missing - you need to add it in that case.If you plan to upgrade to MVC 4, first upgrade to MVC 3 before you do the final step, because there are some breaking changes in MVC 4 (see details here).
I had this issue after upgrading to VS 2013 Express Preview.
Then I noticed there was a line in web.config that was:
Changed it to the version of system.web.webpages.dll in my bin folder:
...and the problem went away. (in your case I guess it's 2.0.0.0.)