[Mono-aspnet-list] Error getting response stream (Trust failure) for HTTP (NOT https) Request?

lars lars at larsknox.com
Tue Mar 1 15:24:18 EST 2011


I am using Ubuntu 10.04, Mono 2.4.4, mod_mono (the latest), Apache2 web

I'm using the Google Docs API to get a list of spreadsheets. This exact same
code works perfectly on a Windows 2008 box but not on the Ubuntu box.

I'm enforcing .NET version 2.0 restrictions on the projects. So I'm only
using .NET 2.0 libraries, etc.

The actual point of failure appears to be at
"System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult)"
which is when I receive the "Error getting response stream (Trust failure):
TrustFailure" error message. The URL is NOT an HTTPS URL! It is merely -->
http://spreadsheets.google.com/feeds/spreadsheets/private/full ... I've read
many posts/blogs regarding this error but it's only in the context of making
an HTTPS request. I am not making an HTTPS request.

I suspect, but do not know (because I am still learning how to develop for
Linux), that this might be permissions related? I understand the Apache runs
under "www-data" user by default. At this point, I'm wondering how to have
Apache run my site with higher permissions/priviledges to see if my
WebRequest call will work correctly. But I am at a loss on how to proceed.

If it make any difference (and I suspect it does not) I have already
imported root certificates and run the tlstest.exe to confirm that I can
connect and issue web requests to HTTPS successfully from the command line.
I just cannot figure out how to get ASP.NET / mod_mono / Apache2 to
successfully make a WebRequest.

Any ideas? Thank you for your time :)


View this message in context: http://mono.1490590.n4.nabble.com/Error-getting-response-stream-Trust-failure-for-HTTP-NOT-https-Request-tp3330536p3330536.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.

More information about the Mono-aspnet-list mailing list