Home » IIS » 500 Internal Server Error if the full path is not entered (0x80070542)

500 Internal Server Error if the full path is not entered (0x80070542)

500 Internal Server Error is one of the most common IIS server errors I see daily basis. Most of the time, a coding or configuration issue causes this error.

In a case I have recently worked on, the page was displaying the error below if the user tries accessing the root of the application. There were no issues if they enter the full path.

“The page cannot be displayed because an internal server error has occured”

500 Internal Server Error if the full path is not entered (0x80070542)

Failed Request Tracing logs shows this error:

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

Required impersonation level was not provided or provided impersonation level is invalid (0x80070542)

Solution for “Required impersonation level was not provided or provided impersonation level is invalid (0x80070542)” error

This error occurs when the service account doesn’t have “Impersonate a client after authentication” Permission (Reference).

Try adding IIS_IUSRS account to “Impersonate a client after authentication” permission list in the local group policy by following the steps below.

  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
Impersonate a client after authentication

If you see “Configuration data for the page is invalid” message for the 500 error, check this post out: Prevent settings to be overridden by web.config (HTTP Error 500.19)

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.
Categories IIS

1 thought on “500 Internal Server Error if the full path is not entered (0x80070542)”

Leave a Comment