I have the following setup:
IIS 7. I have changed the authentication type on my web config file from form to windows as follow:-
But when I try to access the ASP.NET MVC site the got the following error:-
Access is denied. Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.
Error message 401.2.: Unauthorized: Logon failed due to server configuration. Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server. Contact the Web server's administrator for additional assistance.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
What could be the problem?
Please change the Web.config file
From
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
To
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
Also Web.config for 2 users
<system.web>
<authorization>
<allow users="DOMAIN_NAME\my_name,DOMAIN_NAME\USER_NAME" />
<deny users="*" />
</authorization>
</system.web>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With