c# - Consume WCF library with Windows Credential -
i've wcf library , want switch anonymous windows authentication. settings in iis , web.config
file seem fine, can connect powershell using new-webserviceproxy
have problem c# client.
in powershell needed switch piece of code
new-webserviceproxy -uri $uri;
to one
new-webserviceproxy -uri $uri -usedefaultcredential;
in c# referenced library how can tell client "use default credentials"? error
an unhandled exception of type 'system.servicemodel.security.messagesecurityexception' occurred in mscorlib.dll
additional information: http request unauthorized client authentication scheme 'anonymous'. authentication header received server 'negotiate,ntlm'.
Comments
Post a Comment