After migrating a web application to a new server, we encountered this server error:
401 - Unauthorized: Access is denied due to invalid credentials. You do not have permision to view this directory or page using the credentials that you supplied.
This happened despite the fact the user is already authenticated via Active Directory.
There can be many causes to Access Denied error, but if you think you’ve already configured everything correctly from your ASP.NET application, there might be a little detail that’s forgotten. Make sure you give the proper permission to Authenticated Users to access your web application directory.
Right-click on the directory where the web application is stored and select Properties and click on Security tab.
Click on Edit…, then Add… button. Type in Authenticated Users in the Enter the object names to select.
Click OK and you should see Authenticated Users as one of the user names. Give proper permissions on the Permissions for Authenticated Users box on the lower end if they’re not checked already.
Click OK twice to close the dialog box. It should take effect immediately, but if you want to be sure, you can restart IIS for your web application.
Refresh your browser and it should display the web page now.
Further Reading
How to Use Custom 401 Error Page on IIS
How to Customize 401 Error Page with 302 Redirect on IIS
How to Install IIS on Windows
How to Solve Intermittent 403 Forbidden Access is Denied Error in IIS
THANK YOU!!!!! YOU SAVED MY JOB LOL
I hope it’s not as dramatic as that, but I’m glad it helped you! 🙂
It saves me either a lot of time after that automatic process as delete right for Everyone
Great to hear that. Thanks JP.
Save my precious time on checking, well post!!