简体   繁体   中英

Problem Using IIS Express with Visual Studio 2010 SP1

I have a problem with IIS Express & it's annoying the hell out of me.

I have Visual Studio 2010 Ultimate. I installed IIS Express then installed VS2010 SP1. I get all the IIS Express commands showing up.

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'

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"

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.

Anybody any idea how I can get my IIS Express working with Visual Studio again?

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

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

You should run VS always as an administrator.

Your problem looks similar to http://forums.iis.net/p/1177460/1979252.aspx#1979252

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM