Conflicting versions of ASP.NET Web Pages detected

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


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>

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


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.


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


Need Your Help

Jquery script conflict with SignalR

jquery asp.net-mvc signalr

I am running into an issue that seems like it should be relatively simple to solve but so far the answer has eluded me.

twitter streaming api - set filter in http post request (apache httpcomponents)

java http httpwebrequest twitter

I'm trying out the twitter streaming api. I could succesfully filter tweets by using curl, as stated here: