Troubleshooting: HTTP Error 500 (or 500.21) - Internal Server Error Handler
When you try to access the Microsoft Dynamics NAV Web client, you get an error message that is similar to one of the following:
HTTP Error 500 - Internal Server Error Handler
HTTP Error 500.21 - Internal Server Error Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.
This error occurs because the Microsoft .NET Framework 4.0 configuration for ASP .NET has been damaged, which can occur if Microsoft Visual Studio 2010 was installed before Visual Studio 2008 or Microsoft SQL Server 2008.
To resolve this error, you must repair the .NET Framework 4.0.30319 version at a command prompt.
To repair the .NET Framework
On the computer that is running Microsoft Dynamics NAV Web Server components, open a Command Prompt window as an administrator as follows:
From the Start menu, choose All Programs, and then choose Accessories.
Right-click Command Prompt, and then choose Run as administrator.
At the command prompt, do the following.
If the computer is running the full Microsoft .NET Framework, enter the following commands to change to the Microsoft.NET\Framework64\v4.0.30319\SetupCache folder, and then run setup.exe:
cd\Windows\Microsoft.NET\Framework64\v4.0.30319\SetupCache setup.exe /repair /x86 /x64 /ia64 /norestart
If the computer is running the Microsoft .NET Framework client profile, enter the following commands to change to the Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client folder, and then run the setup.exe:
cd\Windows\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /norestart
At the command prompt, type the following command, and then press Enter: