ASP.NET Web页的版本冲突检测 [英] Conflicting versions of ASP.NET Web Pages detected
问题描述
我刚刚搬到从PHP到asp.net。我想部署一个非常基本的MVC 3应用到我的托管服务提供商。它部署后,我访问该网站,并显示:
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:
检测到ASP.NET网页中的冲突的版本:指定版本为1.0.0.0,但斌的版本为2.0.0.0。要继续,从应用程序的bin目录中删除文件或删除web.config中的版本规范。
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.
我不知道去哪里找。其'开箱即用'MVC 3应用程序而无需修改。我试图用这种方法, \"http://stackoverflow.com/questions/10896878/conflicting-versions-of-asp-net-web-pages-detected-specified-version-is-1-0-0\"但没有运气。
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.
任何帮助将是AP preciated。
Any help would be appreciated.
推荐答案
您需要设置的网页:用适当的值版本的appSettings。你的情况,它必须是2.0.0.0。
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>
这篇关于ASP.NET Web页的版本冲突检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!