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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -