VS2005/IIS and Debugging a Web Application



I am trying to configure a web application named "mytestweb.com" and get the

"Unable to start debugging on the web server. The web server is not
configured correctly. See help for common configuration errors. Running the
web page outside the debugger may provide further information."

When I try to navigate directly to
http://localhost/mytestweb.com/default.aspx, I receive a HTTP 403.1 error:
Execute Access Forbidden. "You have attempted to execute a CGI, ISAPI, or
other executable program from a directory that does not allow programs to be

I have verified that the virtual directory is created and has the same
permissions as another web application created the same way with one
exception: the one that works does NOT have an extension. It is simply
called "mytestweb".

I thought IE might be viewing this as an internet site, so I added
http://localhost as a trusted site - still the same problem, same error.

What do I need to do to be able to run and debug web applications with
extensions in the name?




Juan T. Llibre

I am trying to configure a web application named "mytestweb.com" and get the

In general, it's not a good idea to have subwebs with somename.com in the name.
The server will think you are trying to run an executable file.

Try changing the name from :

to http://localhost/mytestweb/

It's OK if the dot-name is the domain name, i.e. :
http://mytestweb.com/ ( you'll need to have a registered domain for that to work )
but using application names which end in .com brings all sorts of problems with it.




you probably need to check to properties in IIS to be sure that you are
pointing to the correct .Net Framework. You can specify 1.1 or 2.0 in the
properties of the web site.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question