在Visual Studio 2010 SP1中使用IIS Express时出现问题
我在IIS Express&真烦人.
I have a problem with IIS Express & it's annoying the hell out of me.
我有Visual Studio 2010 Ultimate.我安装了IIS Express,然后安装了VS2010 SP1.我看到了所有的IIS Express命令.
I have Visual Studio 2010 Ultimate. I installed IIS Express then installed VS2010 SP1. I get all the IIS Express commands showing up.
但是,当我创建一个新的Web应用程序(包括MVC)时,顶部的指令显示蓝色下划线,并显示错误消息"ASP.NET运行时错误:无法映射路径'/IISExpress/7.5/LM/W3SVC/6/ROOT'
However, when I create a new web app, including MVC, the directive at the top get the blue underlining with the error "ASP.NET runtime error: Failed to map the path '/IISExpress/7.5/LM/W3SVC/6/ROOT'
如果我不想以管理员身份运行VS,则错误现在为"ASP.NET运行时错误:'/IISExpress/7.5/LM/W3SVC/6/ROOT'不是有效的IIS应用程序"
If I run VS as administrator, which I'd rather not do, the error is now "ASP.NET runtime error: '/IISExpress/7.5/LM/W3SVC/6/ROOT' is not a valid IIS application"
由于该错误,在编辑apsx文件时没有任何智能提示,这很烦人.我尝试单击创建虚拟目录",但没有任何效果.我尝试删除IIS Express配置文件,因此必须重新制作它们,再次无效.
Because of the error, you don't get any intellisense while editing the apsx file, which is annoying. I've tried clicking the "Create Virtual Directory", to no effect. I've tried removing the IIS Express config files so it has to remake them, again to no effect.
有人知道如何使IIS Express再次与Visual Studio一起使用吗?
Anybody any idea how I can get my IIS Express working with Visual Studio again?
更新:卸载SP1&IIS Express和然后重新安装它们似乎已使其正常工作.我使用从MS下载的副本来确保最新版本,而不是使用Web Platform Installer.西蒙
Update: Un-installing SP1 & IIS Express & then re-installing them seems to have made it work. I used copies download from MS to ensure the latest version rather than using Web Platform Installer. Simon
卸载SP1&IIS Express和然后重新安装它们似乎已使其正常工作.我使用从MS下载的副本来确保最新版本,而不是使用Web Platform Installer.
Un-installing SP1 & IIS Express & then re-installing them seems to have made it work. I used copies download from MS to ensure the latest version rather than using Web Platform Installer.
西蒙(Simon)