[Mono-list] WebRequest - OK in .NET, fails in Mono?

mickeyf mickey at thesweetoasis.com
Wed Aug 7 17:11:40 UTC 2013

My Code:

The Error:

System.Net.WebException() Error getting response stream (Write: The
authentication or decryption has failed.): SendFailure
   at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult
asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in <filename

This works when run using .net, but fails at  request.GetRequestStream() as
shown both on a Windows7 box running mono 2.10.8 and on Linux (Ubuntu 12.04)
on both an x86 box and on ARM (Beagle).

Googling suggests that a certificate issue might cause it to fail at
WebRequest.Create(URL), but that does not seem to be the same problem.

I also tried using CredentialCache, but I understand that using "Digest"
with CredentialCache forces MD5, and the server API I am accessing uses SHA
256, not MD5. (the hashed password and userID are embedded in the

Any insights appreciated.



View this message in context: http://mono.1490590.n4.nabble.com/WebRequest-OK-in-NET-fails-in-Mono-tp4660468.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list