WCF error: The caller was not authenticated by the service

前端 未结 10 494
野性不改
野性不改 2020-12-01 03:53

I am trying to access my WCF service on a server from my client console application for testing. I am getting the following error:

The caller was no

10条回答
  •  攒了一身酷
    2020-12-01 04:13

    I got it.

    If you want to use wshttpbinding, u need to add windows credentials as below.

    svc.ClientCredentials.Windows.ClientCredential.UserName = "abc";
    svc.ClientCredentials.Windows.ClientCredential.Password = "xxx";
    

    thanks

提交回复
热议问题