Conflicting versions of ASP.NET web pages detected

I just switched from php to asp.net. I am trying to deploy a very basic mvc 3 application for my hosting provider. After deploying it, I visit the website and it displays:

Conflicting versions of the detected ASP.NET web pages were detected: the indicated version is "1.0.0.0", but the version in bin is "2.0.0.0". To continue, delete the files from the bin directory of the application or delete the version specification in web.config.

I'm not sure where to look. His application is out of the box mvc 3 unchanged. I tried using this method: "http://stackoverflow.com/questions/10896878/conflicting-versions-of-asp-net-web-pages-detected-specified-version-is-1-0-0", but not lucky.

Any help would be appreciated.

+14
c # visual-studio-2010 asp.net-mvc-3
Jun 14 2018-12-12T00:
source share
4 answers

You need to install the web pages: Version appSettings with the appropriate value. In your case, it should be 2.0.0.0

<appSettings> <add key="webpages:Version" value="2.0.0.0"/> </appSettings> 
+26
Oct 19 '12 at 15:37
source share

Please check the link below, you may have to check the build version in the bin directory

http://www.britishdeveloper.co.uk/2011/11/conflicting-versions-of-aspnet-web.html

0
Jun 14 2018-12-12T00:
source share

If you have already tried the above solutions and still get the same problem, try this one-> Go to the project folder and find the bin folder → Remove System.Web.Mvc.dll and System.Web.Mvc.xml from it.

0
Dec 31 '15 at 6:48
source share

I had this error in webmatrix, to solve it I had to go to the settings and upgrade the version of ASP.NET web pages from 1.0 to 2.0

0
Jun 17 '15 at 14:57
source share



All Articles