473,890 Members | 1,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do I troubleshoot this System.Net.Sock ets.SocketExcep tion?

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.Soc kets.SocketExce ption'
occurred in System.dll

This is not something that is trappable in my HttpRequestHand ler. 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 2636
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.Soc kets.SocketExce ption'
occurred in System.dll

This is not something that is trappable in my HttpRequestHand ler. 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******** ******@TK2MSFTN GP03.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.Soc kets.SocketExce ption'
occurred in System.dll

This is not something that is trappable in my HttpRequestHand ler. 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******** ******@TK2MSFTN GP03.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.Soc kets.SocketExce ption'
occurred in System.dll
This is not something that is trappable in my HttpRequestHand ler. 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********@gma il.comwrote in message
news:11******** **************@ g4g2000hsf.goog legroups.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******** ********@TK2MSF TNGP03.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.Soc kets.SocketExce ption'
occurred in System.dll

This is not something that is trappable in my HttpRequestHand ler. 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
2753
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 use the Visual Studio. Net 2003 enterprise architect and now we get the following exception: System.Net.Sockets.SocketException. An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue...
4
6868
by: Sagaert Johan | last post by:
i get this error if i write this : using System.Net.Sockets; .... .... TcpClient tcp; tcp=new TcpClient();
0
1546
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 must stay open at all times and only close if no activity for 60 seconds. The problem: If I do a read on a networkstream and the connection is closed
1
8191
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 the members of my organization. I think my problem is incorrectly setting the settings on my server or an authentication problem. Here is the code I have written to send a test message: -----Code Begins: Sensitive Information Replaced by -----...
3
11605
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 was forcibly closed by the remote host at System.Net.Sockets.Socket.ReceiveFrom(Byte buffer, Int32 offset, Int32 s
0
2247
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 ExelioServices.exe Additional information: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond I have used...
2
4551
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 Installing a network packet reading program called WireShark my VB.Net program no longer runs and generates the following error : An unhandled exception of type 'System.Net.Sockets.SocketException'
4
5036
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 machine actively refused it Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details:...
1
4487
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 (re)connection (hitting the submit button) then I start to recieve a an error: IOException:System.IO.IOException: Der kunne ikke læses data fra transportforbindelsen (LPF: could not read data from the transport
0
9978
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9819
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10918
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10460
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8015
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7169
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4674
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 we have to send another system
2
4270
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.