Reputation: 472
I am working MVC3 web application with windows authentication. I have set
<authentication mode="Windows" />
<authorization>
<allow roles="domainname\Domain Users" />
<allow users="*" />
<deny users="?" />
in web.config Also in IIS for website Anonymous authentication is disabled and Windows authentication is enabled. When I try to run application it shows authentication popup but even after entering proper username and password it keeps on coming.
Upvotes: 1
Views: 10551
Reputation: 125
I think this is very late to answer it but might help someone who will be stuck like me. The problem was in the security tab we did not add user Account as "Users". We had all the accounts like IIS_USRS, etc but we forgot to add "Users". After adding it allowed everyone to access the site.
The strange thing is when your application doesn't need Windows authentication then IIS_USRS are enough.
Upvotes: 3
Reputation: 21
Please change value in IIS application pool-> Advance Settings-> Enable 32-Bit Application to True
Upvotes: 2