[Mono-list] Problem with System.Net.HttpWebRequest.GetRequestStream

NokNok Developer developer at noknok.net
Thu May 12 15:48:22 EDT 2011


Ok on further trials and searching.  This seems to be a bug in MONO 
DEVELOP or the DEBUGGER Enginer.

In that if I run in Mono Develop, no matter if I try to get 
RequestStream or ResponseStream, it throws the timeout error immediately.

If I drop out, and run mono app.exe, all runs fine.

Is their a fix to Mono Develop which allows using HttpWebRequest in 
debugger?

Shawn

On 5/12/2011 2:42 PM, NokNok Developer wrote:
> I am converting an application over from .NET to MONO
>
> In doing such we have a function which does WEB POSTS.
>
> The problem we are seeing, is after creating the WebRequest, we have to
> get the REQUEST STREAM to write the POST information, when doing that,
> it immediately returns with a TIMEOUT Error:
>
> mystream = wreq.System.Net.HttpWebRequest.GetRequestStream();
>
> Fails immediately:
>
>     at System.Net.HttpWebRequest.GetRequestStream () [0x0004a] in
> C:\cygwin\tmp\monobuild\build\BUILD\mono-2.10.2\mcs\class\System\System.Net\HttpWebRequest.cs:748
>
>
> Why is that? Is their something special one needs to do when wanting to
> get the Stream for the Request so we can POST information?
>
> Shawn
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list