4
votes

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

2
I also have this problem and in search for a solution. I have reinstalled the VS 2010 SP1 and also IIS Express but it didnt solve the problem. - Alexandre Jobin
I tried reinstalling them using web platform installer. It just messed things up more. Un-installing them now & have downloaded latest version to try again. We'll see if it makes any difference. - Simon Halsey
I'd trust WPI over google to find the latest version of any MS product. WPI is kept up to date, whereas finding the freshest download link when searching is never easy. - user1228

2 Answers

2
votes

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

0
votes

You should run VS always as an administrator.

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