[MonoDevelop] MonoDevelop 4.2.3 - Web Service Client Exception: Error: SendFailure (Error writing headers) at System.Net.HttpWebRequest.EndGetRequestStrea
Hari
phariparam at gmail.com
Tue Jul 15 01:50:37 UTC 2014
Hi Mel,
Finally I was able to connect to the wcf server using the HTTPS
connection. I did the folllowing.
*Step 1.*
First I added the certificates to the store "My" using the below commands
*certmgr -add -c -m My MyCert.cer*
*certmgr -add -c -m My Root.cer*
But the hppts connection threw an exception
*Step 2*.
After that, I applied the below command. This will add the certificate to
the store "AddressBook".
*certmgr -ssl https://myserver.com:1200/Monik/TestSvc
<https://myserver.com:1200/Monik/TestSvc>*
But this also didn't work
*Step 3.*
Just I tried to delete the certificates from all other stores to make sure
that the certificate is not exist in any other stores except My.
certmgr -delete -c -m Trust MyCert.cer
certmgr -delete -c -m AddressBook MyCert.cer
certmgr -delete -c -m CA MyCert.cer
After completing the Step 3. It started working fine. But I never added the
certificates to the stores CA or Trust
I think what you said is correct, the certificate should only added to the
Machine Store
Thank You
On Fri, Jul 11, 2014 at 1:46 PM, Miljenko Cvjetko <mcvjetko at holisticware.net
> wrote:
> 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 listMonodevelop-list at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
>
> _______________________________________________
> 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/20140714/f2eb57e8/attachment.html>
More information about the Monodevelop-list
mailing list