locked
WCF Client- net tcp-The server has rejected the client credentials RRS feed

  • Question

  • User2048898515 posted

    Hi Guys,

    I am getting follow error when WCF Client- access wcf service via-net tcp.

    I believe it is related to Windows Server 2012/IIS setup issue of net tcp. Because it is the same App.Config of Service working properly in another server.

    Need your help to find where the mistake can be.

    System.ServiceModel.Security.SecurityNegotiationException: 'The server has rejected the client credentials.'

    Win32Exception: The logon attempt failed.

    ScreenShot:

    https://ibb.co/rH6Vw0x

    Saturday, June 1, 2019 7:02 PM

Answers

  • User-330142929 posted

    Hi Nambir,

    Please try to enable the windows feature support for WCF

    https://i.stack.imgur.com/AEddz.png

    https://i.stack.imgur.com/TzXS4.png

    Then Enable the Windows Authentication in IIS authentication module.

    https://i.stack.imgur.com/ySkym.png

    if there is no Windows authentication in the group, please enable the related Windows Feature support for IIS.

    https://i.stack.imgur.com/FOAk7.png

    Feel free to let me know if the problem still exists.

    Best Regards

    Abraham

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 3, 2019 2:54 AM

All replies

  • User753101303 posted

    Hi,

    A NegotiationException would make me think about not using the same authentication on the client side than the one used on the server side. You are using Windows authentication ?

    Sunday, June 2, 2019 12:22 PM
  • User2048898515 posted

    Hi Patrice,

    I am consuming it in Console application.

    I have not added any authentication code, So i guess it will be default ie , may be Windows Authentication.

    Sunday, June 2, 2019 4:18 PM
  • User-330142929 posted

    Hi Nambir,

    Please try to enable the windows feature support for WCF

    https://i.stack.imgur.com/AEddz.png

    https://i.stack.imgur.com/TzXS4.png

    Then Enable the Windows Authentication in IIS authentication module.

    https://i.stack.imgur.com/ySkym.png

    if there is no Windows authentication in the group, please enable the related Windows Feature support for IIS.

    https://i.stack.imgur.com/FOAk7.png

    Feel free to let me know if the problem still exists.

    Best Regards

    Abraham

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 3, 2019 2:54 AM