简体   繁体   中英

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

在IIS中启用Windows身份验证...

Web项目属性

您需要禁用匿名身份验证。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM