I just moved from php to asp.net. I’m trying to deploy a very basic mvc 3 application to my hosting provider. After it deploys, I visit the website, and it displays:
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.
I’m not sure where to look. Its the ‘out of the box’ mvc 3 application with no modification. I tried to use this method, “http://stackoverflow.com/questions/10896878/conflicting-versions-of-asp-net-web-pages-detected-specified-version-is-1-0-0” but had no luck.
Any help would be appreciated.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You need to set webpages:Version appSettings with appropriate value. In your case it has to be 2.0.0.0
<appSettings>
<add key="webpages:Version" value="2.0.0.0"/>
</appSettings>
Method 2
Please check below link, you would probably have to check the assembly version in bin directory
http://www.britishdeveloper.co.uk/2011/11/conflicting-versions-of-aspnet-web.html
Method 3
If you have already tried the above solutions and are still getting the same problem then try this one->
Go to your project folder and in there locate the bin folder –> Remove System.Web.Mvc.dll and System.Web.Mvc.xml from there.
Method 4
I had this error in webmatrix, to solve it I had to go to settings and update ASP.NET web pages version from 1.0 to 2.0
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0