Error to leave application authenticated by Windows

Asked

Viewed 973 times

3

I’m trying to leave an application authenticated by Windows. But when I change the settings on IIS with anonymous authentication disabled as per the image below: enter image description here I have the following mistake:

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

I’m using a WCF, I’ve made several changes to webconfig but always comes back to this error.

Does anyone have any idea what it might be?

1 answer

0

Add this snippet to web.config. If you are going to use Windows authentication, it is not necessary to have the personification of ASP.NET active

<system.web>
  <authentication mode="Windows" />
  <authorization>
    <deny users="?" />
  </authorization>
</system.web>
  • I deactivated ASP.NET personification, and added this code on web.config, but I still have the same error.

  • @Can you solve it? I have a hunch for this problem. If you still need it, I will need to confirm some things with you

  • I still can’t fix it.

  • If you right-click on "Windows Authentication" and then click on providers, what appears?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.