Windows Authentication Does Not Work When Deploying MVC Site

I configured my MVC site to use Windows authentication in the project properties and in the configuration file:

<authentication mode="Windows"/> 

When I run the code on my machine, everything works fine, but when I deploy the site in IIS, I get the error "User. You do not have the right to use this site."

I made sure that Windows authentication is enabled in IIS functions, I don’t know what else I need for this, please help!

  • .NET Framework 4.5
  • IIS 7.5
  • MVC 5

Windows Auth is included in IIS ...

Web project properties

+5
source share
1 answer

you need to disable anonymous authentication.

+3
source

Source: https://habr.com/ru/post/1236702/


All Articles