Engineering scalable systems, cloud-native applications, and AI-powered solutions.

Fix- You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

Yesterday, I uploaded one of my ASP.NET MVC application on local IIS. I got above error message when I tried to access a web page that returns pdf file.

Ankush Jain

Ankush Jain

Lead Software Engineer (VP) | Software Architect

Published May 17, 2017Updated Nov 24, 2026

Yesterday, I uploaded one of my ASP.NET MVC application on local IIS. I got above error message when I tried to access a web page that returns pdf file.

Message was saying:

You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

Fix

  1. Open IIS.
  2. Select your application and on right panel double click on Authentication icon.
    enter image description here
  3. You will see a list of authentication options.
  4. From the list select Anonymous Authentication and double click on it. A popup will open, select Application Pool Identity option.
    enter image description here

Issue will be fixed. Cheers !!

Have feedback or thoughts?

Discuss this article or share it on Twitter / GitHub.