[MonoDevelop] MonoDevelop 4.2.3 - Web Service Client Exception: Error: SendFailure (Error writing headers) at System.Net.HttpWebRequest.EndGetRequestStrea

Miljenko Cvjetko mcvjetko at holisticware.net
Fri Jul 11 18:46:53 UTC 2014


Hi

On 20140709 16:29 , Hari wrote:
> I am trying to access https wcf web service from my application using 
> monodevelop in Linux. I am using the basicHttpBinding binding which 
> works fine with HTTP protocol. But when I am using HTTPS protocol, the 
> web service call is throwing the following exception
>
> Error: SendFailure (Error writing headers)  at 
> System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult 
> asyncResult) [0x00043] in 
> /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System/System.Net/HttpWebRequest.cs:845
>   at 
> System.ServiceModel.Channels.HttpRequestChannel+<BeginProcessRequest>c__AnonStorey1.<>m__0 
> (IAsyncResult r) [0x0001d] in 
> /home/abuild/rpmbuild/BUILD/mono-3.4.0/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:219.
>
>
>
> when I try to load the web service url using https, the Firefox 
> browser is giving a warning "*This connection is Untrusted"*
>
> The certificate(.cer) is generated using Visual Studio 2008 makecert 
> utility.I tried to install the certificate using the below commands
>
> 1. certmgr -add -c -m My MyCert.cer
> 2. certmgr -ssl https://myserver:1200/Monik/TestSvc
I had similar problems with ASP.net vNext restore which uses nuget. Some 
users report that certificates should be installed into machine store 
not user store:

This will install certificates into user store:

mozroots --import --sync
certmgr -ssl https://go.microsoft.com
certmgr -ssl https://nugetgallery.blob.core.windows.net
certmgr -ssl https://nuget.org

and this will install into machine store

sudo mozroots --import --machine --sync
sudo certmgr -ssl -m https://go.microsoft.com
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
sudo certmgr -ssl -m https://nuget.org

HTH

cheers

Mel

PS

and pls let us know. Because there is more people with the similar problems.



>
> I also copied the certificate to /etc/ssl/certs folder.
>
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20140711/2f025f33/attachment.html>


More information about the Monodevelop-list mailing list