冲突版本错误添加ASP.NET MVC 3 Web角色到Windows Azure项目 [英] Conflicting versions error adding ASP.NET MVC 3 Web Role to Windows Azure project

查看:327
本文介绍了冲突版本错误添加ASP.NET MVC 3 Web角色到Windows Azure项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下错误安装Windows Azure工具1.4后,创建一个新项目:

I am getting the following error creating a new project after installing Windows Azure Tools 1.4:

版本冲突检测:指定版本为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.

推荐答案

您会发现你有你的bin文件夹中的程序集是在web.config中提到的不同版本。奇怪的一点是,它可能不是该消息表明该组件。它可能是一个后代

You'll find you have an assembly in your bin folder that is a different version from the one mentioned in the web.config. The weird bit is that it may not be the assembly that the message suggests. It may be a descendent of that.

我由此在bin文件夹声称System.Web.WebPages版本这个问题是2.0.0.0,但它肯定是1.0.0.0,当我检查。然后,原来,这是System.Web.WebPages.Deployment这是2.0.0.0版本。去除组装后错误就走开了。我写了一篇博客文章在这:ASP.NET网页的版本冲突检测

I had this problem whereby it claimed version of System.Web.WebPages in the bin folder was 2.0.0.0 but it was definitely 1.0.0.0 when I checked. It then turned out that it was System.Web.WebPages.Deployment that was version 2.0.0.0. After removing that assembly the error went away. I wrote a blog post on this: Conflicting versions of ASP.NET Web Pages detected

这篇关于冲突版本错误添加ASP.NET MVC 3 Web角色到Windows Azure项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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