Note that there are some explanatory texts on larger screens.

plurals
  1. PO"WCF Getting Started" MSDN Tutorial Problem
    text
    copied!<p>Solution to original problem (below) may have been discovered. I commented out</p> <pre><code>&lt;identity&gt; ... &lt;/identity&gt; </code></pre> <p>tag in the app.config file for the client. But I'm not sure if this is going to cause other problems, if it does, could someone let me know?</p> <hr> <p>I've been following the <a href="http://msdn.microsoft.com/en-us/library/ms730144.aspx" rel="nofollow noreferrer">Getting Started tutorial</a> at MSDN for WCF.</p> <p>I'm using Visual Studio.net 2008 on Vista x64. The Service program is running just fine. However, the client is having issues.</p> <p>When I run the client I get this exception:</p> <blockquote> <p>SecurityNegotiationException was unhandled SOAP security negotiation with '<a href="http://localhost:8000/ServiceModelSamples/Service/CalculatorService" rel="nofollow noreferrer">http://localhost:8000/ServiceModelSamples/Service/CalculatorService</a>' for target '<a href="http://localhost:8000/ServiceModelSamples/Service/CalculatorService" rel="nofollow noreferrer">http://localhost:8000/ServiceModelSamples/Service/CalculatorService</a>' failed. See inner exception for more details.</p> </blockquote> <p>The inner exception message says:</p> <blockquote> <p>"The Security Support Provider Interface (SSPI) negotiation failed."</p> </blockquote> <p>My code is pretty much exactly the same as the example's. I've never really done anything with web services or WCF or anything similar. Anyone know how I could go about fixing this? Thanks.</p> <p>Edit - I forgot to mention where the exception is thrown... In the client's Main method:</p> <pre><code>CalculatorClient client = new CalculatorClient(); double value1 = 100.00; double value2 = 15.99; double result = client.Add(value1, value2); //This is the line that throws the error //... </code></pre> <p>I added client.Open(); right after the client init, because I searched Google and someone was having problems too and that helped him, but when I do that the same exception is thrown on the new line.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload