M
Martijn van Schie
Hi,
I have a issue where is ever so often get an IOException:
Type : System.IO.IOException, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Message : Unable to read data from the transport connection: The connection
was closed.
Source : System
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.IAsyncResult InternalWrite(Boolean, Byte[], Int32,
Int32, System.AsyncCallback, System.Object)
We are creating the request custom using the HttpWebRequest object and
execute the using the Page.RegisterAsyncTask.
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(_navigationUri);
byte[] requestBytes =
System.Text.Encoding.ASCII.GetBytes(authenticateMessage);
request.Method = "POST";
request.ContentType = "text/xml; charset=\"utf-8\"";
request.ContentLength = requestBytes.Length;
combinedAsyncState.ProxyState = new object[] { request,
requestBytes };
return request.BeginGetRequestStream(callback, state);
The error occures only once every 10 minutes during a webtest. The trouble
is that this is very hard to debug because i cannot reproduce the error when
i want.
The party claims they have no error, nor are they responsible for the error.
Putting something like Fiddler in between to catch the request and response
message is also no option, because the requests are over HTTPS.
What is the best opproach to tackle this issue.
Regards,
Martijn
I have a issue where is ever so often get an IOException:
Type : System.IO.IOException, mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Message : Unable to read data from the transport connection: The connection
was closed.
Source : System
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.IAsyncResult InternalWrite(Boolean, Byte[], Int32,
Int32, System.AsyncCallback, System.Object)
We are creating the request custom using the HttpWebRequest object and
execute the using the Page.RegisterAsyncTask.
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(_navigationUri);
byte[] requestBytes =
System.Text.Encoding.ASCII.GetBytes(authenticateMessage);
request.Method = "POST";
request.ContentType = "text/xml; charset=\"utf-8\"";
request.ContentLength = requestBytes.Length;
combinedAsyncState.ProxyState = new object[] { request,
requestBytes };
return request.BeginGetRequestStream(callback, state);
The error occures only once every 10 minutes during a webtest. The trouble
is that this is very hard to debug because i cannot reproduce the error when
i want.
The party claims they have no error, nor are they responsible for the error.
Putting something like Fiddler in between to catch the request and response
message is also no option, because the requests are over HTTPS.
What is the best opproach to tackle this issue.
Regards,
Martijn