5
votes

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

1
Is the IIS server in the same domain?DavidG
could you please check your .Net Authorization Rules of IIS ?manish

1 Answers

3
votes

you need to disable your anonymous authentication.