HTTP Error 500 Internal Server Error - Error Code 0x80040153

Anil Kunjunny 1 Reputation point
2022-05-12T04:09:00.75+00:00

As part of rebuilding our dev CRM environment on Win2K16, and configuring the application I had to go through and install almost everything under the WebServer>Application Development branch of roles/features.

The CRM Application works fine, but when I try to configure other applications including a third party webservice and a bespoke Asp.net application, i encounter the Internal Server Error 500


HTTP Error 500.0 - Internal Server Error

An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

Most likely causes:
•IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
•IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
•IIS was not able to process configuration for the Web site or application.
•The authenticated user does not have permission to use this DLL.
•The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:
•Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
•Check the event logs to see if any additional information was logged.
•Verify the permissions for the DLL.
•Install the .NET Extensibility feature if the request is mapped to a managed handler.
•Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.

Detailed Error Information:

Module
AspNetInitClrHostFailureModule

Notification
BeginRequest

Handler
ExtensionlessUrlHandler-Integrated-4.0

Error Code
0x80040153

Requested URL
http://localhost:80/**************

Physical Path
C:\Inetpub\wwwroot*************

Logon Method
Not yet determined

Logon User
Not yet determined


Steps I have taken include doing the v4.0 install again using aspnet_regiis -i both Framework & Framework64
Checking permissions on the application folders

The other notable change is that when I attempt to run the aspnet_regiis -pdf to decrypt the web.config it comes up with the error.

Microsoft (R) ASP.NET RegIIS version 4.0.30319.0
Administration utility to install and uninstall ASP.NET on the local machine.
Copyright (C) Microsoft Corporation. All rights reserved.
Decrypting configuration section...
Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened. (C:\Program Files (x86)*********line 131)

The RSA key container could not be opened.
Failed!

This is something that started happening after I figured out that the DotNet configuration is having some kind of issues.
Any help to resolve this would be deeply appreciated

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,536 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,350 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,711 Reputation points
    2022-05-17T15:22:19.603+00:00

    Hello

    Thank you for your question and reaching out.
    I can understand you are having some issues related to IIS.

    1. Please enable verbose logging and check Third party or CRM application logs from Logs folders
    2. Disable any Antivirus program or Windows firewall you may have for temporary purpose.
    3. Please try to re-install dependency applications required for this like runtime or dot net framework.
      4 . Please try to set IIS pool to 32-Bit instead of x64 .

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.