Quite a few times I have faced the problem of running ASP.NET web applications on my IIS.
The various errors which I used to get are:
- “Cannot start ATL or COM debugging“
- “The webserver running your web application is in the Internet Zone“
- “Cannot start ASP.NET debugging on this webserver“
Every time I did a search for help on these topics, I landed on the respective Microsoft Knowledge Base Articles, which explain these problems in a nice manner. One such article is “Visual Studio .NET has detected Web server is not running ASP.NET 1.1”.
The problem with my IIS was this one:
3. Web Server specified by ASP.NET Web Project/Web Service Project is stopped or IP address cannot be mapped.
A: Please check IIS's Web configuration, include IP Address and working status. If your network IP address already changed, you must change your Web Site's IP Address. (If you use "localhost" to create Web Project, you can do nothing.)
All I did was changed the IP address configuration in IIS to 127.0.0.1. I did try to use localhost, but IIS doesnt take it. Once I did this, I was able to create ASP.NET applications. The next problem was that I wasnt able to run the ASP.NET web application because the URL of the web application ie. http://127.0.0.1/WebApp1 was in the InternetZone. The solution for this is given in the MSDN Library.
Tough these are some small issues, it would be a real pain if one does not know that the MSDN KB has solutions for all these.