Error to leave application with Windows authentication

1

I'm trying to leave an application with Windows authentication. However when I change the settings in IIS with anonymous authentication disabled as shown below: I have the following error:

  

[MessageSecurityException: The HTTP request is not authorized in the client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate, NTLM'.]

I am using a WCF, I have already made several changes in webconfig but I always come back to this error.

Does anyone have any idea what it can be?

    
asked by anonymous 08.11.2016 / 18:31

1 answer

0

Add this snippet to web.config . If you are going to use Windows authentication, you do not need to have ASP.NET impersonation active

<system.web>
  <authentication mode="Windows" />
  <authorization>
    <deny users="?" />
  </authorization>
</system.web>
    
08.11.2016 / 19:25