WCF 'A Call to SSPI Failed, see Internal Exception'

I had installed and running WCF with self-hosting WCF support.

Naturally, I had to make some changes. Therefore, I changed the base address to my local workstation and made changes. It worked fine.

Now it's time to redistribute and ... Well ... He's holding on, and I can't understand.

From the app.config file:

<system.serviceModel> <services> <service behaviorConfiguration="ExStreamWCF.Service1Behavior" name="ExStreamWCF.Service1"> <endpoint address="" binding="netTcpBinding" bindingConfiguration="" contract="ExStreamWCF.IService1"> <identity> <dns value="Devexstream-2" /> <!--<dns value="vmwin2k3sta-tn2" />--> </identity> </endpoint> <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="net.tcp://Devexstream-2:8080/Service" /> <!--<add baseAddress="net.tcp://vmwin2k3sta-tn2:8080/Service" />--> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ExStreamWCF.Service1Behavior"> <serviceMetadata httpGetEnabled="false" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> 

From the web.config file (long story):

  <system.serviceModel> <services> <service behaviorConfiguration="ExStreamWCF.Service1Behavior" name="ExStreamWCF.Service1"> <endpoint address="" binding="netTcpBinding" bindingConfiguration="" contract="ExStreamWCF.IService1"> <identity> <dns value="Devexstream-2" /> <!--<dns value="vmwin2k3sta-tn2" />--> </identity> </endpoint> <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="net.tcp://Devexstream-2:8080/Service" /> <!--<add baseAddress="net.tcp://vmwin2k3sta-tn2:8080/Service" />--> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ExStreamWCF.Service1Behavior"> <serviceMetadata httpGetEnabled="false" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> </behaviors> 

Any guesses on what I'm doing wrong?

+6
source share
2 answers

Thank you for the incorrectly configured SPN.

Too bad, there are no functions on this site to close my question, I have to wait 2 days to select this :-)

Thanks again!

+3
source

I removed the identity element from the configuration for local testing when I was not connected to the domain. He works.

link -

http://blogs.msdn.com/b/jpsanders/archive/2010/10/14/wcf-client-inner-exception-quot-the-security-support-provider-interface-sspi-negotiation-failed-quot. aspx

+2
source

Source: https://habr.com/ru/post/888667/


All Articles