日期:2014-05-17  浏览次数:20754 次

窗体程序调用WCF,提示:调用方未由服务进行身份验证
代码:

GatherDataClient client = new GatherDataClient();
client.ClientCredentials.UserName.UserName = "admin";
client.ClientCredentials.UserName.Password = "admin";
client.ClientCredentials.Windows.ClientCredential.UserName = "admin";
client.ClientCredentials.Windows.ClientCredential.Password = "admin";
//设置了用户名 密码

还是有错误提示:
捕捉到SecurityNegotiationException
调用方未由服务进行身份验证。


如何解决??

非常感谢
wcf

------解决方案--------------------
http://social.msdn.microsoft.com/Forums/zh-CN/wcfzhchs/thread/5ccfaae0-379e-43f2-9cb6-c080fb4197bd