Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PJ6 - 26 Jul 2007 17:00 GMT
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
bruce barker - 26 Jul 2007 17:47 GMT
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)

> 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
[quoted text clipped - 13 lines]
>
> Paul
PJ6 - 26 Jul 2007 18:51 GMT
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

> when you stop the load, it closes the connection which causes the error.
> your code is hanging and you need to figure why.
[quoted text clipped - 19 lines]
>>
>> Paul
Flinky Wisty Pomm - 26 Jul 2007 20:19 GMT
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.

> The hanging occurs only after execution has left my handler, and I have
> verified this with breakpoints. When I pause execution on the hang
[quoted text clipped - 26 lines]
>
> >> Paul
PJ6 - 26 Jul 2007 20:42 GMT
Unfortunately yes.

Paul

> Doe this behaviour occur when Fiddler isn't running?
>
[quoted text clipped - 8 lines]
>>
>> Paul
PJ6 - 31 Jul 2007 19:10 GMT
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

>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
[quoted text clipped - 13 lines]
>
> Paul

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.