Unable to debug

  • Thread starter Thread starter Hans Ruck
  • Start date Start date
H

Hans Ruck

Hi,

I installed the VS2005 and the IIS on the same machine. Then I have
created a new ASP.NET project with a simple page and attempted to
debug it. VS fails with this message: "Unable to start debugging on
the web server. The underlying connection was closed: An unexpected
error occurred on a send".

On the other hand, loading the page in the web browser is very
successful

Is there anything to be set that I forgot about? The problem never
happened with the old VS2003.
 
The first thing I'd check is the <compilation> tag in your web.config file.
Make sure the "debug" attribute is set to "true".
 
Hi,

I installed the VS2005 and the IIS on the same machine. Then I have
created a new ASP.NET project with a simple page and attempted to
debug it. VS fails with this message: "Unable to start debugging on
the web server. The underlying connection was closed: An unexpected
error occurred on a send".

On the other hand, loading the page in the web browser is very
successful

Is there anything to be set that I forgot about? The problem never
happened with the old VS2003.

Did you attach the process to the VS debugger ?
 
Hans said:
Hi,

I installed the VS2005 and the IIS on the same machine. Then I have
created a new ASP.NET project with a simple page and attempted to
debug it. VS fails with this message: "Unable to start debugging on
the web server. The underlying connection was closed: An unexpected
error occurred on a send".

On the other hand, loading the page in the web browser is very
successful

Is there anything to be set that I forgot about? The problem never
happened with the old VS2003.

I ran into this running in Vista. It turns out you need to patch visual
studio AND run it as the admin user, under vista, in order to be able to
debug ASP.NET apps. I got this link from another post in this ng:

http://mvolo.com/blogs/serverside/a...ng-of-ASP.NET-applications-on-IIS7-Vista.aspx


Best Regards,

James Crosswell
Microforge.net LLC
http://www.microforge.net
 
Back
Top