WCF gives an unsecured or incorrectly secured fault error

前端 未结 21 2321
予麋鹿
予麋鹿 2020-11-28 23:09

I am trying to consume a remote svc web service. I created the proxy class using svcutil.exe, and after that I\'ve added that class to my console application, b

相关标签:
21条回答
  • 2020-11-28 23:53

    Mostly this exception happens when there is some errors in the server, the most common one is a wrong configuration of the authentication database, or authentication. In my case there was different clock synchronization make sure both client and server have same settings

    Click on Time at your Right-Bottom side -> "Change date time settings..." -> "Internet Time" tab -> Change Settings... -> check the "Synchronise with an internet time server" option if it is unchecked -> from server dropdown select "times.windows.com" -> Update Now -> OK

    0 讨论(0)
  • 2020-11-28 23:53

    In my case, I was getting this error on the same machine, in my test client-server application. But this problem was resolved by "Update Service Reference".

    • Tushar G. Walavalkar
    0 讨论(0)
  • 2020-11-28 23:54

    In my case, when I changed the wshttpbinding protocol from https to http it started working.

    0 讨论(0)
提交回复
热议问题