Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm helping a co-worker with an issue he's having on his recently re-imaged workstation. He had a fresh install of Windows 7. He installed Visual Studio 2010, then Visual Studio 2008 (in that order, for reasons unrelated to this question), then tried to open a legacy solution we have in either one.

The web projects (project file and everything, not "web site" in Visual Studio terms) in the solution failed to open because they have a hard dependency on virtual directories on the local IIS. Turns out IIS wasn't installed.

So he added IIS via the usual "Windows Features" or whatever they're calling it these days, the old "Add/Remove Programs" sort of thing. Then ran aspnet_regiis /i for v4 of the framework. Ran Visual Studio 2010 again (as an Administrator explicitly) and tried to open the solution, web projects still fail to open. Ran aspnet_regiis /i for v2, tried in Visual Studio 2008, still no luck.

As a test, he tried to create a new "web site" in Visual Studio 2008 and set it to create on HTTP and gave it a local address (http://localhost/testapp), so it should create the virtual directory in IIS. However, it instead gave us this error:

enter image description here

I'm not much of an IIS expert or a Windows administration expert, so I'm a bit stumped on what the problem is. Is there something additional we need to add from the Windows Features? Did regiis not work? What do you recommend?

share|improve this question
1  
Did you install the IIS 6 and ASP.NET components as well, as the error message suggests? –  user3463 Jan 27 '11 at 23:43
    
@Randolph Potter: I would imagine so, but I guess I can't state that with 100% assurance. There was a tree of checkboxes under Internet Information Services in the Windows Features, and we checked them all. I'll have to double-check that tomorrow at work, naturally. Is it possible there are necessary features outside of that tree of checkboxes? –  David Jan 27 '11 at 23:58
    
It is entirely possible. I'm presently on a Mac but I'm dimly recollecting a checkbox for ASP.NET somewhere, which automatically fills in some pre-requisites. I may be wrong, though. –  user3463 Jan 28 '11 at 0:13
1  
@Randolph Potter: I too am currently on a Mac, so we're both just speculating tonight :) I'll see what I can find on Google given this possibility and check the machine in question in the morning. My co-worker will be in a meeting tomorrow, allowing me a couple of hours to tinker with his machine to try to get it working. –  David Jan 28 '11 at 0:24
    
Cool. I hope this will point you in the right direction. –  user3463 Jan 28 '11 at 0:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.