Saturday, March 31, 2012

VS2005/IIS and Debugging a Web Application

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

"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
executed."

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?

Thanks!re:

Quote:

Originally Posted by

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


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 :

Quote:

Originally Posted by

http://localhost/mytestweb.com/


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.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Karch" <nospam@.absotutely.comwrote in message news:%23XBfaEY3GHA.4024@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>I am trying to configure a web application named "mytestweb.com" and get the
error:
>
"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
executed."
>
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?
>
Thanks!
>
>


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.
--
Chris Davoli

"Karch" wrote:

Quote:

Originally Posted by

I am trying to configure a web application named "mytestweb.com" and get the
error:
>
"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
executed."
>
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?
>
Thanks!
>
>
>

0 comments:

Post a Comment