Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows authentication not working when deployed MVC site

I have configured my MVC site to use windows authentication in the project properties and in the config file:

<authentication mode="Windows"/>

When I run the code on my machine everything works fine but when I deploy the site to IIS i get an error stating "User . You are not authorized to use this website."

I made sure Windows Authentication is enabled in IIS features, not sure what else I should to for this to work, please help!

  • .NET Framework 4.5
  • IIS 7.5
  • MVC 5

Windows Auth enabled in IIS...

Web project properties

like image 538
Denys Wessels Avatar asked Oct 19 '22 21:10

Denys Wessels


1 Answers

you need to disable your anonymous authentication.

like image 159
amit dayama Avatar answered Nov 15 '22 04:11

amit dayama