Hi Red,
Were you able to solve the problem?
I am looking at the code and I am trying to understand where it fails: is it
because tempStream becames a NULL object or maybe because
tempStream.Write(PostData,0,PostData.Length) is trying to write no data?
Have you tried tracing the code, writting the output to a file when the
error occurs, just to see under what condition the error happens? I
understand the application is in production but maybe you can add a flag in
the web.config and turn it on for a limited period of time just to cactch the
error. (I have read recently an article on MSDN with a firm who developed a
tool to trace the requests in a web application and figure out a Microsoft
bug which was happening once at 100.000 requests.)
I have found this while reading in the MSDN library about
HttpWebRequest.GetRequestStream method, maybe you already know it:
" In a .NET Compact Framework application, a request stream with zero
content length was not obtained and closed correctly. For more information
about handling zero content length requests:
http://msdn2.microsoft.com/en-us/library/1afx2b0f.aspx
Anyway, it will be nice to know how did you handled this issue.
Best regards,
Eugen
> Hi Friends,
>
[quoted text clipped - 55 lines]
> Regards,
> red
red - 31 Jan 2007 17:56 GMT
Hi Eugen,
Since its a production environment I am not in a position to change even a
web.config entry for a short period of time.
I will try to generate the trace with the help of someone from the Infra
team and get back to you.
Thanks again
red
> Hi Red,
>
[quoted text clipped - 83 lines]
> > Regards,
> > red