473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
5 2611
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2684
by: paulbubach | last post by:
Hi @all, we have the following problem. We have developed an application with the Visual Studio.Net 2002 and the project runs on it. But now we have change the version of the Studio and now we...
4
6837
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
0
1507
by: Tim Wagaman | last post by:
I an having issuses with a loop I am running to keep checking for messages coming across our line. The goal: Listen for messages on port 5001 and print the messages into a text file. The port...
1
8154
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
3
11567
by: J C | last post by:
Hi, I'm using UDPClient to make a simple DNS server. I notice that intermittently and unpredictibly I get: Unhandled Exception: System.Net.Sockets.SocketException: An existing connection...
0
2201
by: vincent | last post by:
Hi all, I'm getting this error when i running my applicaion with remote server from my local machine. An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in...
2
4530
by: Steve Lowe | last post by:
Hi, I have a VB.Net 2003 program that uses Indy to check if there are any messages waiting on a POP mail server. The program has been running fine for a few months, but last week after...
4
4995
by: sd1978 | last post by:
Hi, I have placed a webservice in the webserver. When I access it from a webpage, default.aspx on a click of a button i get the following error: No connection could be made because the target...
1
4434
by: larspeter | last post by:
Hi all. I have a problem with TcpClient ... I am conneting to a server with TcpClient and returning the answer through a webservice. It actully all works fine. BUT if I make a lot of...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.