HTTP Error 500.19 – Internal Server Error

HRESULT: 0x80070005

Description of HRESULT
The requested page cannot be accessed because the related configuration data for the page is invalid.

This error is particularly prevalent for newly installed servers because:

There’s a fairly good chance you’re missing the correct VC++ runtime for the version of PHP you’re running.

If you’re running PHP 5.5.x you need to ensure the VC++11 runtime is installed:

Make sure you download and install the x86 version (vcredist_x86.exe), PHP on Windows isn’t 64 bit yet.

If you’re running PHP 5.4.x then you need to install the VC++9 runtime:

Many thanks to Sepehr for help with this.