Friday, September 2, 2011

A call to sspi failed see inner exception

I got this error "A call to sspi failed see inner exception" while trying to access a WCF service remotely in So after creating the proxy class by giving the add service reference try to access in the below way. Hope that will solve your error.

ServiceReference1.Service1Client serviceClient = new ServiceReference1.Service1Client("NetTcpEndPoint");
                    serviceClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri("URL of service"), new System.ServiceModel.SpnEndpointIdentity(""));
URL of service: This is the url of the wcf service. Better approach is to copy the base address from the app.config file in the wcf project.