"虚假" Web项目需要剃刀缺失的Web组件消息 [英] "Bogus" Web project requires missing web component message for razor

查看:220
本文介绍了"虚假" Web项目需要剃刀缺失的Web组件消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio 2010中,MVC 3(发行版),我打开一个特定的项目,这是我已经加入MVC传统的Web表单项目时收到此错误:

Using Visual Studio 2010, MVC 3 (release version) I'm getting this error when opening a specific project which was a traditional web forms project to which I've added MVC:

Web项目''需要缺少的Web组件与Visual Studio中运行。你想下载并安装使用Web平台安装程序现在?

"The Web project '' requires missing web components to run with Visual Studio. Would you like to download and install the using the Web Platform Installer now?

ASP.NET Web页面剃刀语法。

ASP.NET Web pages with Razor syntax."


  • 我已经安装了MVC和全面运行。其它纯MVC和其他混合Web窗体/ MVC项目没有任何问题打开。

  • 单击是出现要经过下载和安装,但仍错误。

  • 单击否打开项目,在那里我有智能感知和语法高亮显示剃刀,我所有的MVC环境项目(添加视图,添加控制器等)。总之,一切似乎是工作,除了这似乎是一个虚假的错误信息就好了。

我已经做了比较SLN,和的csproj web.config文件中的一个文件,并补充说,出现相关的一切。在此之前这样做,我是缺少ProjectTypeGuids加入其中得到了MVC的上下文菜单和剃刀智能感知工作的一些条目。我试着重置ProjectGuid,但我仍然得到错误。

I've done a file compare of the sln, csproj and web.config files and added everything that appears relevant. Prior to doing that I was missing some entries in ProjectTypeGuids the addition of which got the MVC context menus and Razor intellisense working. I tried resetting the ProjectGuid but I still get the error.

我也有$ P $通过卸载MVC3,MVC2,ASP.NET网页,修复Visual Studio中,从独立的安装程序进行安装MVC 3 pviously走了,也许一对夫妇更多的事情。我还没有尝试过一个完整的系统重新安装。我从一个相对干净的Windows 7安装工作。这是一个新的安装大约2个星期前,只有VS 2010已经安装(无旧版本的测试版或)。

I have also previously gone through uninstalling MVC3, MVC2, ASP.NET Web Pages, repairing Visual Studio, installing MVC 3 from the stand-alone installer, and probably a couple more things. I have not yet tried a full system reinstall. I am working from a relatively clean Windows 7 installation. It was a fresh setup about 2 weeks ago and only VS 2010 has been installed (no older versions or betas).

我的想法在这一点上。任何人有什么建议吗?我有点,因为这混淆是具体项目,但该错误信息表明问题是与Visual Studio。

I'm out of ideas at this point. Anyone got any suggestions? I'm a bit confused since this is project-specific, yet the error message indicates that the problem is with Visual Studio.

更新:它变得更有趣一点。另一位开发人员能够打开同一个项目他的机器上没有任何错误或警告。所以这是我的工作站上具体到这个项目的东西。在这一点上,我愿意把它简单地看作是一些模糊的边缘情况下的错误。

Update: it gets a little more interesting. Another developer was able to open the same project on his machine without any errors or warnings. So it's something specific to this project on my workstation. At this point I'm willing to write it off as some obscure edge-case bug.

更新2:并重新启动了系统后,现在更新它的工作我的工作站上。肯定某种边缘的情况下,绝对不是我可以重现。

Update 2: And now after rebooting for a system update it's working on my workstation. Definitely some sort of edge-case, and definitely not something I can reproduce.

推荐答案

您可以从更新看,这个问题已经在系统更新后,系统会提示客场重启。所以,是否有人在这里结束了一个类似的问题,你已经通过所有其他的可能性消失,请尝试重新启动。

You can see from the updates, that the problem has gone away after a system-update prompted reboot. So if anyone else has ended up here with a similar problem and you've gone through all the other possibilities, try rebooting.

这篇关于"虚假" Web项目需要剃刀缺失的Web组件消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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