ASP.NET网页的冲突版本检测:指定的版本是" 1.0.0.0"但是在bin中的版本是" 2.0.0.0"在ASP.MET MVC 3 [英] 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" in ASP.MET MVC 3

查看:1185
本文介绍了ASP.NET网页的冲突版本检测:指定的版本是" 1.0.0.0"但是在bin中的版本是" 2.0.0.0"在ASP.MET MVC 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装的Microsoft Web助手后,出现以下错误:

I am getting the following error after installing microsoft web helper:

冲突的ASP.NET Web页的版本检测:指定版本为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.

从我读,我可能会尝试instaling版本错误。但我怎么orrect呢? 到目前为止,我有

From what I read, I might have tried instaling the wrong version. But how do i orrect this? So far, I have

  • 卸载的Microsoft Web助手
  • 删除和bin文件夹的内容和重建项目
  • 与所有默认设置一个新的文件(给我并没有改变太多这里还是我的项目替换我的web.config文件。

但这些(如建议在线)工作。如何解决这个请任何暗示。 IHAVE已在此几个小时,现在

But none of these (as suggested online) worked. Any hint on how to solve this please. Ihave been at this for hours now

推荐答案

我在升级到VS 2013例preSS preVIEW后有这个问题。

I had this issue after upgrading to VS 2013 Express Preview.

然后我注意到有在web.config中有一行是:

Then I noticed there was a line in web.config that was:

 <add key="webpages:Version" value="1.0.0.0" />

改成了system.web.webpages.dll的版本在我的bin文件夹:

Changed it to the version of system.web.webpages.dll in my bin folder:

 <add key="webpages:Version" value="3.0.0.0" />

...和问题走了。 (在你的情况我想这是2.0.0.0。)

...and the problem went away. (in your case I guess it's 2.0.0.0.)

这篇关于ASP.NET网页的冲突版本检测:指定的版本是&QUOT; 1.0.0.0&QUOT;但是在bin中的版本是&QUOT; 2.0.0.0&QUOT;在ASP.MET MVC 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆