Applicable to:

Symptoms

CONFIG_TEXT: The Module DLL C:\Windows\system32\inetsrv\rewrite.dll failed to load. The data is the error.

Or the following error appears:

CONFIG_TEXT: Could not load type '%SystemRoot%\system32\inetsrv\rewrite.dll'.

Cause

%SytemRoot%\system32\inetsrv\rewrite.dll
does not exist on the filesystem or corrupted. It would also help to check the Event Viewer Logs ( Windows Logs > Application ) to look for specific causes of failure before proceeding to troubleshoot any further.

Resolution

Connect to the server via RDP and make sure that rewrite.dll
exists in the folder
%SystemRoot%\System32\inetsrv. If the .dll doesn't exist, it is required to download a correct URL Rewrite Module version and install it - www.iis.net/urlrewrite.