By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,930 Members | 1,465 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,930 IT Pros & Developers. It's quick & easy.

how do I troubleshoot this System.Net.Sockets.SocketException?

P: n/a
PJ6
I can't figure this out. I have several references to style sheets and
javascript files in my page header, the contents of which are served
dynamically by my httphandler that serves *.res requests. The handler works
most of the time, but occasionally the page load hangs on the loading of the
last .res reference for a javascript file (Fiddler shows me this), and when
I stop the load in the browser, I get this error message:

A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll

This is not something that is trappable in my HttpRequestHandler. Also, it
doesn't seem to matter if my handler is synchronous or asynchronous.

I don't even know how to troubleshoot this since I can't trap it in my own
code, and Google isn't helpful. Help?

Paul
Jul 26 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
when you stop the load, it closes the connection which causes the error.
your code is hanging and you need to figure why.

-- bruce (sqlwork.com)

PJ6 wrote:
I can't figure this out. I have several references to style sheets and
javascript files in my page header, the contents of which are served
dynamically by my httphandler that serves *.res requests. The handler works
most of the time, but occasionally the page load hangs on the loading of the
last .res reference for a javascript file (Fiddler shows me this), and when
I stop the load in the browser, I get this error message:

A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll

This is not something that is trappable in my HttpRequestHandler. Also, it
doesn't seem to matter if my handler is synchronous or asynchronous.

I don't even know how to troubleshoot this since I can't trap it in my own
code, and Google isn't helpful. Help?

Paul

Jul 26 '07 #2

P: n/a
PJ6
The hanging occurs only after execution has left my handler, and I have
verified this with breakpoints. When I pause execution on the hang
condition, I only get "how disassembly". It may or may not be my code - but
again, it's not clear to me how to diagnose the problem.

Paul

"bruce barker" <no****@nospam.comwrote in message
news:um**************@TK2MSFTNGP03.phx.gbl...
when you stop the load, it closes the connection which causes the error.
your code is hanging and you need to figure why.

-- bruce (sqlwork.com)

PJ6 wrote:
>I can't figure this out. I have several references to style sheets and
javascript files in my page header, the contents of which are served
dynamically by my httphandler that serves *.res requests. The handler
works most of the time, but occasionally the page load hangs on the
loading of the last .res reference for a javascript file (Fiddler shows
me this), and when I stop the load in the browser, I get this error
message:

A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll

This is not something that is trappable in my HttpRequestHandler. Also,
it doesn't seem to matter if my handler is synchronous or asynchronous.

I don't even know how to troubleshoot this since I can't trap it in my
own code, and Google isn't helpful. Help?

Paul

Jul 26 '07 #3

P: n/a
Doe this behaviour occur when Fiddler isn't running?

I only ask because I once spent days hunting for a SocketException
that was caused by Fiddler while I was tracing for another problem.

On Jul 26, 6:51 pm, "PJ6" <no...@nowhere.netwrote:
The hanging occurs only after execution has left my handler, and I have
verified this with breakpoints. When I pause execution on the hang
condition, I only get "how disassembly". It may or may not be my code - but
again, it's not clear to me how to diagnose the problem.

Paul

"bruce barker" <nos...@nospam.comwrote in message

news:um**************@TK2MSFTNGP03.phx.gbl...
when you stop the load, it closes the connection which causes the error.
your code is hanging and you need to figure why.
-- bruce (sqlwork.com)
PJ6 wrote:
I can't figure this out. I have several references to style sheets and
javascript files in my page header, the contents of which are served
dynamically by my httphandler that serves *.res requests. The handler
works most of the time, but occasionally the page load hangs on the
loading of the last .res reference for a javascript file (Fiddler shows
me this), and when I stop the load in the browser, I get this error
message:
A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll
This is not something that is trappable in my HttpRequestHandler. Also,
it doesn't seem to matter if my handler is synchronous or asynchronous.
I don't even know how to troubleshoot this since I can't trap it in my
own code, and Google isn't helpful. Help?
Paul

Jul 26 '07 #4

P: n/a
PJ6
Unfortunately yes.

Paul

"Flinky Wisty Pomm" <Pa********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
Doe this behaviour occur when Fiddler isn't running?

I only ask because I once spent days hunting for a SocketException
that was caused by Fiddler while I was tracing for another problem.

On Jul 26, 6:51 pm, "PJ6" <no...@nowhere.netwrote:
>The hanging occurs only after execution has left my handler, and I have
verified this with breakpoints. When I pause execution on the hang
condition, I only get "how disassembly". It may or may not be my code -
but
again, it's not clear to me how to diagnose the problem.

Paul

Jul 26 '07 #5

P: n/a
PJ6
I just discovered that IE6 on my machine has a hanging problem not limited
to my project.

I thought to test for this after it threw a BSOD at me. Time for a fresh
installation of Windows.

Paul

"PJ6" <no***@nowhere.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>I can't figure this out. I have several references to style sheets and
javascript files in my page header, the contents of which are served
dynamically by my httphandler that serves *.res requests. The handler works
most of the time, but occasionally the page load hangs on the loading of
the last .res reference for a javascript file (Fiddler shows me this), and
when I stop the load in the browser, I get this error message:

A first chance exception of type 'System.Net.Sockets.SocketException'
occurred in System.dll

This is not something that is trappable in my HttpRequestHandler. Also, it
doesn't seem to matter if my handler is synchronous or asynchronous.

I don't even know how to troubleshoot this since I can't trap it in my own
code, and Google isn't helpful. Help?

Paul

Jul 31 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.