Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET HttpModule gives "Connection Reset" in browser

I have implemented a HttpModule in ASP.NET (framework 2.0).

From my logging on the server, I can see that the http request is being picked up by my HttpModule, and my code runs successfully (writing content back to the Response stream).

However, the web browser (IE, FF, Chrome, all the same) just give me a "connection reset" error message.

I've checked the Event Log on the server; there are no related errors or messages there.

EXTRA INFO: When I use the "Live HTTP Headers" plugin in FF, it does not even display my client request (although I am sure it reaches the server, due to the request being captured in the server log).

How can I troubleshoot what's happening here?

like image 591
ObiWanKenobi Avatar asked Aug 26 '10 11:08

ObiWanKenobi


1 Answers

Answering my own question here... I found out that there is a log file at C:\WINDOWS\system32\LogFiles\HTTPERR.

It shows the following:

2010-08-26 12:07:10 xx.xx.xx.xx 2618 xx.xx.xx.xx 80 HTTP/1.1 GET /web/myapp - 232667915  Connection_Dropped DefaultAppPool
2010-08-26 12:07:10 xx.xx.xx.xx 2624 xx.xx.xx.xx 80 HTTP/1.1 GET /web/myapp - 232667915 Connection_Dropped DefaultAppPool
2010-08-26 12:07:10 xx.xx.xx.xx 2625 xx.xx.xx.xx 80 HTTP/1.1 GET /web/myapp - 232667915 Connection_Dropped DefaultAppPool

After googling a bit I found this: http://davidovitz.blogspot.com/2007/08/iis-60-httperr-logs-show.html

And followed the advice:

  1. "aspnet_regiis -u"
  2. Uninstall IIS
  3. Reboot
  4. Reinstall IIS
  5. "aspnet_regiis -i"

... reconfigure sites, and everything worked beautifully again. :-)

like image 144
ObiWanKenobi Avatar answered Sep 30 '22 20:09

ObiWanKenobi