500 Internal Server Error when accessing the root folder

This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.

In a case I worked on, the page was displaying "The page cannot be displayed because an internal server error has occured" error if the user accesses the root folder of the application. There were no issues if they enter the full path.

 

Failed Request Tracing log:

“Either a required impersonation level was not provided, or the provided impersonation level is invalid (0x80070542)”

Nedim_1-1592834169125.jpeg

 

 

This error occurs if the service account doesn’t have “Impersonate a client after authentication” Permission.

 

Follow to steps below to solve this issue:

  1. Go to Start > Settings > Control Panel > Administrative Tools > Local Security Policies
  2. Expand Local Policies and select User Rights Assignment
  3. In the right pane, double-click Impersonate a client after authentication
  4. In the Security Policy Setting dialog box, click Add User or Group
  5. In the Select Users, Computers or Groups dialog box, type IIS_IUSRS
  6. Select Check Names and verify that the name is correct

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.