IIS Error "*.dll failed to load. The data is the error"

2/10/2019

Handling IIS Error "*.dll failed to load. The data is the error"

One may get a slew of errors when running a web app such as the following shown in Event Viewer:

The Module DLL C:\Windows\System32\inetsrv\compdyn.dll failed to load.  The data is the error.

The Module DLL C:\Windows\System32\inetsrv\iis_ssi.dll failed to load.  The data is the error.

The Module DLL C:\Windows\System32\inetsrv\authcert.dll failed to load.  The data is the error.

The Module DLL C:\Windows\System32\inetsrv\authbas.dll failed to load.  The data is the error.

The Module DLL C:\Windows\System32\inetsrv\logcust.dll failed to load.  The data is the error.

The Module DLL C:\Windows\System32\inetsrv\isapi.dll failed to load.  The data is the error.

They indicate some IIS features need to be enabled.   The easiest and quickest is enable all IIS features instead of figuring out which one are needed exactly.

 

 

The following error requires to comment out all aspnetcore related lines in file applicationHost.config under folder  C:\Windows\System32\inetsrv\Config

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