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!
您需要禁用匿名身份验证。
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.