Conflicting versions of ASP.NET Web Pages detected

前端 未结 4 2071
栀梦
栀梦 2021-01-07 23:44

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:

相关标签:
4条回答
  • 2021-01-08 00:22

    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

    0 讨论(0)
  • 2021-01-08 00:23

    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>
    
    0 讨论(0)
  • 2021-01-08 00:33

    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

    0 讨论(0)
  • 2021-01-08 00:35

    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.

    0 讨论(0)
提交回复
热议问题