5

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

kayess
  • 3,384
  • 9
  • 28
  • 45
Denys Wessels
  • 16,829
  • 14
  • 80
  • 120

1 Answers1

3

you need to disable your anonymous authentication.

amit dayama
  • 3,246
  • 2
  • 17
  • 28