Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 5 Aug 2008 14:07:05 -0700 (PDT),    group: microsoft.public.dotnet.framework        back       


WCF Selfhost - transport security   
Hey All

I am using WCF self host with transport security. I used the https for
the metadata as well and have trusted trial certificates and i have
done the following:

          <serviceCredentials>
            <serviceCertificate findValue="testcertificate"
storeLocation="LocalMachine"
              storeName="My" x509FindType="FindBySubjectName" />
          </serviceCredentials>

but the problem is that i can not use testcertificate i get following
warning when i try to add service refence:
The security certificate for host 'testcertificate' does not match the
name of the page you are trying to view.

So what i thought was to have a test certificate named localhost and
updates the certificate bindings using httpcfg.

          <serviceCredentials>
            <serviceCertificate findValue="localhost"
storeLocation="LocalMachine"
              storeName="My" x509FindType="FindBySubjectName" />
          </serviceCredentials>


I get following error when i tried to update meta data:
There was an error downloading 'https://localhost:8012/MyService'.
The underlying connection was closed: An unexpected error occurred on
a send.
Authentication failed because the remote party has closed the
transport stream.
Metadata contains a reference that cannot be resolved: 'https://
localhost:8012/MyService'.
An error occurred while making the HTTP request to https://localhost:8012/MyService.
This could be due to the fact that the server certificate is not
configured properly with HTTP.SYS in the HTTPS case. This could also
be caused by a mismatch of the security binding between the client and
the server.
The underlying connection was closed: An unexpected error occurred on
a send.
Authentication failed because the remote party has closed the
transport stream.
If the service is defined in the current solution, try building the
solution and adding the service reference again.



i tried various things on net but unsuccessful... plz help....

thanks
sunny
date: Tue, 5 Aug 2008 14:07:05 -0700 (PDT)   author:   sunny

Did you get any solution for this?   
I have the same problem. It worked with the cert I downloaded from indigogirl web site, but not work with one of my company test CA cert. I noticed that there was no private key for CA cert. Did you figure it out?
Thanks,
Helen
date: Wed, 15 Oct 2008 11:24:15 -0700   author:   Helen Z

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us