[.NET Core] Unable to load ‘\.\hostfxr.dll’. This might be caused by a bitness mismatch between IIS application pool and published application. | CodingSchnauzer
 

[.NET Core] Unable to load ‘\.\hostfxr.dll’. This might be caused by a bitness mismatch between IIS application pool and published application.

| Posted in Programming

Problem description

After I deploy application to iis, I got the error message “HTTP Error 500.32 – ANCM Failed to Load dll“. then I open event viewer, I found the error message “Unable to load ‘.\hostfxr.dll’. This might be caused by a bitness mismatch between IIS application pool and published application“.   

Solution

Step 1. Open IIS manager > Application Pool > Select App pool > Advanced Settings

Step 2. Update “Enable 32 bits applications” from false to true > Click OK

Step 3. Open the site, the issue has been resolved.


CodingSchnauzer ©2022. All Rights Reserved.