What can cause "Connection Abort" on LocalHost when debugging in ASP.NET

I try to launch the just created ASP.NET website using C #, but when I do this, it starts FireFox and tries to connect to http: // localhost: 1295 / WebSite1 / Default.aspx (for example), but after about For 10-15 seconds, the message "Connection Interrupted - the connection to the server was reset while the page was loading" is displayed. Error.

This issue also occurs with old ASP.NET C # / web services that I built in the past, nothing happens on the ASP.NET development server.

I use: Windows XP Pro SP2, Visual Studio 2008

For reference, I also have SQL Server 2005 Developer Edition installed.

I tried:

  • View it using IE instead of Mozilla
  • Trying 2.0 framework instead of 3.5
  • Reinstall Visual Studio 2008

This problem seems so trivial that I think about it, but I have not yet been able to handle it! Appreciate any help on this.

+4
source share
7 answers

When the application starts, a small information label appears in the lower right part of the screen, which indicates that the local web server was running and on which port. You should compare this port with the one displayed in your browser. If they are different, the antivirus may be responsible for this problem. Another place to look is your host file. Some software modifies this file and may make your localhost disbehave.

+3
source

I had the same problem, and when I was about to leave and run away and join the monasticism, I had the idea to check ELMAH - maybe it caught him ...

Of course, ELMAH told me that it caught this:

System.Web.HttpException (0x80004005): Maximum request length exceeded. 

and this fixed this:

 <system.web> <httpRuntime maxRequestLength="65535" /> </system.web> 

Good luck, Dave

+6
source

Something like Fiddler or another proxy server that can cause this problem if local addresses are proxied.

You can check this in the "Control Panel / Internet Options -" Connections "tab," LAN Settings "at the bottom.

+2
source

Try adding "127.0.0.1 localhost" before reading the line ":: 1 localhost" in c: \ windows \ system32 \ drivers \ etc \ hosts

This worked for me (VS2008, Vista Ultimate)

+2
source

I had a similar problem with Windows 7 RC and Visual Studio 2008 SP1. Changing localhost to 127.0.0.1 helped. Similar to the host's file solution, but does not require editing the file, you just need to change the project launch URL.

+2
source

I have the same problem, just the built-in VS 2008 in Vista Business machine. I have a LAN, but there is no proxy server and c: \ windows \ system32 \ drivers \ etc \ hosts "with" 127.0.0.1 localhost ", but none of my projects work, nor new ones.

+1
source

"I had a similar problem with Windows 7 RC and Visual Studio 2008 Service Pack 1. Changing localhost to 127.0.0.1 helped. As with the hosts file, but does not require editing the file, you just need to change the startup url project."

This solution works fine ........

0
source

All Articles