Click here to Skip to main content
15,890,370 members
Home / Discussions / C#
   

C#

 
AnswerRe: Stream closes while reading a socket Pin
Luc Pattyn20-Nov-09 6:27
sitebuilderLuc Pattyn20-Nov-09 6:27 
GeneralRe: Stream closes while reading a socket Pin
joana.simoes23-Nov-09 0:13
joana.simoes23-Nov-09 0:13 
GeneralRe: Stream closes while reading a socket Pin
joana.simoes23-Nov-09 0:39
joana.simoes23-Nov-09 0:39 
GeneralRe: Stream closes while reading a socket Pin
Luc Pattyn23-Nov-09 0:43
sitebuilderLuc Pattyn23-Nov-09 0:43 
GeneralRe: Stream closes while reading a socket Pin
joana.simoes23-Nov-09 3:56
joana.simoes23-Nov-09 3:56 
NewsRe: Stream closes while reading a socket Pin
joana.simoes23-Nov-09 6:43
joana.simoes23-Nov-09 6:43 
AnswerRe: Stream closes while reading a socket Pin
dojohansen23-Nov-09 11:15
dojohansen23-Nov-09 11:15 
NewsRe: Stream closes while reading a socket Pin
joana.simoes24-Nov-09 1:37
joana.simoes24-Nov-09 1:37 
I want to say Thanks to everybody who reply to me: your tips and suggestions were really helpful on tackling this issue.
As I said on previous posts, and following a lot of suggestions (Thanks Luc!) I decided to go for an implementation with explicit threading (giving up on the ThreadPool and Asynchronous webrequests, that don't seem to work well with my problem).
Apart from being much faster (cause I now take advantage of the parallelism), the application seems to throw that odd exception less often. Since I am able to catch it, and there is no real disturb for the client (it seems to render ok, despite some requests not being correctly responded) I decided to leave it as it is.
I googled a lot for this exception, and I don't seem to fidn any solution for the problem; maybe it is expected that sometimes the stream fails?

A first chance exception of type 'System.Net.HttpListenerException' occurred in System.dll
System.Net.HttpListenerException: An operation was attempted on a nonexistent network connection
   at System.Net.HttpResponseStream.Write(Byte[] buffer, Int32 offset, Int32 size)


AFAIK, most people seem to be swallowingthis exception. Anyway, I will close this problem here but if anybody has something new to add about this, it will be always good to know!Thumbs Up | :thumbsup:
cheers,
Jo
QuestionExcel Formatting. Pin
FEMDEV20-Nov-09 4:47
FEMDEV20-Nov-09 4:47 
AnswerRe: Excel Formatting. Pin
toby3120-Nov-09 8:16
toby3120-Nov-09 8:16 
GeneralRe: Excel Formatting. Pin
FEMDEV22-Nov-09 22:44
FEMDEV22-Nov-09 22:44 
QuestionSQLite Pin
jashimu20-Nov-09 3:26
jashimu20-Nov-09 3:26 
AnswerRe: SQLite Pin
MeLight20-Nov-09 3:35
MeLight20-Nov-09 3:35 
GeneralRe: SQLite Pin
jashimu20-Nov-09 4:44
jashimu20-Nov-09 4:44 
GeneralRe: SQLite Pin
Pete O'Hanlon20-Nov-09 5:04
mvePete O'Hanlon20-Nov-09 5:04 
GeneralRe: SQLite Pin
PIEBALDconsult20-Nov-09 8:04
mvePIEBALDconsult20-Nov-09 8:04 
GeneralRe: SQLite Pin
jashimu20-Nov-09 8:09
jashimu20-Nov-09 8:09 
AnswerRe: SQLite Pin
PIEBALDconsult20-Nov-09 3:35
mvePIEBALDconsult20-Nov-09 3:35 
AnswerRe: SQLite Pin
Md. Marufuzzaman20-Nov-09 4:34
professionalMd. Marufuzzaman20-Nov-09 4:34 
QuestionSimulating a key press problem Pin
MeLight20-Nov-09 3:17
MeLight20-Nov-09 3:17 
AnswerRe: Simulating a key press problem Pin
Dave Kreskowiak20-Nov-09 6:59
mveDave Kreskowiak20-Nov-09 6:59 
GeneralRe: Simulating a key press problem Pin
MeLight20-Nov-09 7:43
MeLight20-Nov-09 7:43 
QuestionCOM GUID Pin
gioviro20-Nov-09 2:40
gioviro20-Nov-09 2:40 
QuestionNot able of saving in App.config Pin
FJJCENTU20-Nov-09 2:07
FJJCENTU20-Nov-09 2:07 
AnswerRe: Not able of saving in App.config Pin
Not Active20-Nov-09 2:26
mentorNot Active20-Nov-09 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.