Reputation: 30155
On my Windows 7 x64 machine, I'm trying to launch debugging on an ASP.NET web site, hosted on a local IIS, from Visual Studio 2010 SP1. My first step was to configure to use IIS, and to use the "Create Virtual Directory" option VS offers. When I do so, I get this error:
Configuring Web
http://localhost/MySite
for ASP.NET 4.0 failed. You must manually configure this site for ASP.NET 4.0 in order for the site to run correctly. Configuring the virtual directory for ASP.NET 4.0 failed. You may need to manually configure this site for ASP.NET 4.0 in order for your site to run correctly.
This problem is similar to the one described here, but in my case the default application pool is indeed set. Any ideas?
After the error message is given, another dialogue pops up saying that the virtual directory was created successfully (!!!!). Indeed, when I open IIS Manager I can see the new application. However, it doesn't work; I cannot launch the web application.
I have another machine that has the same application configured the same way, and yet it works fine. Bizarre.
Upvotes: 2
Views: 14272
Reputation: 30155
This answer fixed the problem.
In prior steps, attempting to solve the issue, I had already done the following:
Perhaps those two steps were not necessary, but at this point I'm not going backwards to find out.
Upvotes: 3