Introduction

If you open a website hosted on Microsoft Internet Information Services (IIS) and see an Authorization Error, it usually means the web server is denying access to the requested resource. This is one of the most common issues faced by Windows Server administrators, DevOps engineers, and web developers.

Typical error messages include:

  • HTTP Error 401 – Unauthorized
  • Authorization Error
  • You are not authorized to view this page
  • HTTP Error 403 – Forbidden

This guide explains the common causes of IIS authorization errors and provides step-by-step solutions to resolve them.

What is an IIS Authorization Error?

An authorization error occurs when IIS receives a request but refuses to serve the page because the user or application does not have the required permissions.

This issue may occur due to:

  • Incorrect authentication settings
  • Missing NTFS permissions
  • Authorization Rules blocking access
  • Application Pool identity issues
  • Incorrect IIS configuration
  • Windows Authentication problems
  • Missing default documents

Common Authorization Error Messages

HTTP Error 401.1

Unauthorized
Access is denied due to invalid credentials.

HTTP Error 401.3

Unauthorized
Access is denied due to ACL settings.

HTTP Error 403

Forbidden
You do not have permission to view this directory or page.

Authorization Error

You are not authorized to view this page.

Common Causes

1. Anonymous Authentication Disabled

If Anonymous Authentication is disabled, IIS expects valid user credentials.

Solution

  1. Open IIS Manager
  2. Select your website
  3. Open Authentication
  4. Enable
Anonymous Authentication

Disable Windows Authentication if it is not required.

2. Windows Authentication Misconfigured

If your application uses Windows Authentication but users are not authenticated correctly, IIS returns a 401 error.

Verify

  • Windows Authentication Enabled
  • Anonymous Authentication Disabled
  • User belongs to the required Active Directory group

3. Missing Folder Permissions

IIS requires permission to read website files.

Right-click your website folder

Properties
→ Security

Ensure these users have Read & Execute permission:

IUSR
IIS_IUSRS
Application Pool Identity

Example

C:\inetpub\wwwroot\MySite

Permissions

IUSR          Read
IIS_IUSRS     Read

4. Incorrect Application Pool Identity

Each website runs under an Application Pool.

If the identity cannot access the website folder, authorization fails.

Verify

IIS Manager

Application Pools

Advanced Settings

Identity

Default

ApplicationPoolIdentity

Grant this identity access to your website folder.

5. Authorization Rules Blocking Access

IIS Authorization Rules may explicitly deny users.

Navigate to

IIS Manager

Authorization Rules

Example

Bad Rule

Deny All Users

Correct Rule

Allow All Users

or

Allow Specific Users

6. Missing Default Document

If browsing the root site

http://server/

and no default page exists, IIS may return an authorization or forbidden error.

Verify

Default Document

Contains

index.html

default.aspx

Default.htm

7. Directory Browsing Disabled

If no default document exists and directory browsing is disabled:

HTTP 403.14
Forbidden

Solutions

  • Add a default document
  • Enable Directory Browsing (not recommended for production)

8. Incorrect web.config

A bad authorization section causes access denial.

Example

<authorization>
    <deny users="*" />
</authorization>

This blocks everyone.

Correct example

<authorization>
    <allow users="*" />
</authorization>

Or allow authenticated users

<authorization>
    <allow users="?" />
</authorization>

Review your application’s authentication requirements before modifying these settings.

9. NTFS Permission Issues

Even if IIS settings are correct, Windows file permissions can deny access.

Run

icacls "C:\inetpub\wwwroot\MySite"

Verify appropriate permissions exist.

Grant permission

icacls "C:\inetpub\wwwroot\MySite" /grant IIS_IUSRS:(OI)(CI)RX

10. Application Pool Stopped

If the Application Pool is stopped:

HTTP Error
503 Service Unavailable

Although not strictly an authorization issue, it is commonly confused with one.

Restart

Application Pools

Right Click

Start

Conclusion

Authorization errors in IIS are typically caused by incorrect authentication settings, missing NTFS permissions, restrictive authorization rules, or application configuration issues. By following a structured troubleshooting process—checking authentication, folder permissions, Application Pool settings, web.config, and IIS logs—you can identify the root cause and restore access quickly.

For production environments, always apply the principle of least privilege, test changes in a non-production environment when possible, and maintain proper backups before modifying IIS or application configurations.

Leave a Reply