web services - WCF + SSL no endpoint found -


I'm figthing for hours now to figure out this problem.

I have a WCF service I host on II I7, when I use the normal HTTP protocol, then all works fine.

I added SSL capbights and since then I can not access it with code. I can make a client but can not run any of its methods.

What do I have here?

  & lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; WsHttpBinding & gt; & Lt; Bandhan Name = "WSHTP 0" & gt; & Lt; Safety Mode = "Transportation" & gt; & Lt; Transport realm = "clientCredentialType =" None "/ & gt; & Lt; / Security & gt; & Lt; / binding & gt; & Lt; / wsHttpBinding & gt; & Lt; / Binding & gt; & LT; customer & gt; & LT; endpoint address = "https: //serverName.domname.local/WCFTest/MyWebServicec.svc" binding = "wsHttpBinding" bindingConfiguration = "WSHttp0" contract = "SSLWebService.IMyWebService" name = "WSEP" & gt ; & Lt; identity & gt; & lt; dns value = "serverName.domname.local" />   gt; & lt; / client & gt; Lt; /system.serviceModel>  

I added a service reference to my project

and I use it like this

 < Code> Moderate MyWebServ iceClient = Try new MyWebServiceClient as () client.GetDocumentByDocID (5) catch prior exception as MessageBox.Show (ex.Message) End  

And here's what I get Try

There was no endpoint that could accept that message. This is often caused by a false address or SOAP operation. For more information, if the inner expression is present, then See.

Can anyone help me on this? I really do not understand what is happening ...

Note: I can use the website properly using Internet Explorer (so I think my certificate is OK)

I think the server web.config is faulty here. I have the following app on the client side. WCF has been found on SSL work with config.

  & lt; Configuration & gt; & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; WsHttpBinding & gt; & Lt; Binding name = "WSHttpBinding_iservice" & gt; & Lt; Safety Mode = "Transportation" & gt; & Lt; Transport realm = "clientCredentialType =" Windows "/ & gt; & Lt; / Security & gt; & Lt; / binding & gt; & Lt; / wsHttpBinding & gt; & Lt; / Binding & gt; & LT; customer & gt; & LT; endpoint address = "https: //mycomputer/Service/Service.svc" binding = "wsHttpBinding" bindingConfiguration = "WSHttpBinding_IService" contract = "ServiceProxy.IService" name = "WSHttpBinding_IService" & gt; & LT; identity & gt; & Lt; dns value = "mycomputer" / & gt; & Lt; / identity & gt; & Lt; / endpoint & gt; & Lt; / client & gt; & LT; /system.serviceModel> & Lt ; / Configuration & gt;  

The only visual difference is the client credential type that I have set in Windows because I integrate I want to use Windows authentication. Web server. Client config includes the following lines to set up customer service.

  & lt; system.serviceModel & gt; & LT; binding & gt; & LT; wsHttpBinding & gt; & Lt; binding name = "Windows binding" & gt; & Lt; security mode = "Transport" & gt; & Lt; transport proxy credential type = "Windows" / & gt; & Lt; / Safety & gt; & Lt; / Binding & gt; & Lt; / WsHttpBinding & gt; & Lt; / Binding & gt; & Lt; Services & gt; & Lt; Service transaction support = "Service.Service1Behavior" name = "Service.Service" & gt; & Lt; Endpoint address = "" bond = "wsHttpBinding" bindingConfiguration = "WindowsBinding" contract = "ServiceInterface.IService" & gt; & Lt; Identity & gt; & Lt; Dns value = "mycomputer" /> & Lt; / Identification & gt; & Lt; / Endpoint & gt; & Lt; / Services & gt; & Lt; / Services & gt; & Lt; Behavior & gt; & Lt; ServiceBehaviors & gt; & Lt; Behavior name = "Service.Service1Behavior" & gt; & Lt; ServiceMetadata httpGetEnabled = "true" /> & Lt; The services included in the debugging include exceptions = DishialInstine = "false" /> & Lt; / Behavior & gt; & Lt; / ServiceBehaviors & gt; & Lt; / Behavior & gt; & Lt; /system.serviceModel>  

Do you compare it to your web? Can config on server side and see what's different? Or add your web.config to the question.


Comments