I’ve been working with relatively new stuff these days. And I am the kind of guy who has issues… I mean software issues. And solving them could take some time and reading. So I decided to help you and myself by taking notes of some common ones and quick fixes for them.
So here goes the first one.
A 32-bit Internet Information Server (IIS) application pool crashes. In the event log you see the following message like this:
The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to load. The data is the error.
and/or like this:
The Module DLL C:\WINDOWS\system32\inetsrv\httpplatformhandler.dll failed to load. The data is the error.
I guess you’re running a Windows 10 with ASP.NET Core Module (AspNetCoreModule) and/or HTTP Platform Handler Module (HttpPlatformHandlerModule) installed. And you have probably installed the Windows 10 Anniversary Update afterwards.
The Windows 10 Anniversary Update reinstalls IIS but fails to update the applicationhost.config file accordingly, causing 32-bit application pools to try to load the 64-bit version of the beforementioned assemblies.
- Uninstall .NET Core (and/or DNX);
- Uninstall ASP.NET Core Module (and/or HTTP Platform Handler Module);
- Open the %SystemRoot%\System32\inetsrv\config\applicationhost.config file with your favourite editor (running as Administrator);
- Locate and and remove any elements mentioning “aspnetcore.dll” (and/or “httpplatformhandler.dll“);
- Reinstall ASP.NET Core Module (and/or HTTP Platform Handler Module);
- Reinstall .NET Core (and/or DNX).