[.NET Core] Unable to load ‘\.\hostfxr.dll’. This might be caused by a bitness mismatch between IIS application pool and published application.
October 27, 2019
|
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.

Hi there, just wanted to tell you, I liked this blog post. It was funny. Keep on posting!| а
Everything is very open with a very clear description of the challenges.
It was truly informative. Your site is very helpful.
Many thanks for sharing!
Pretty! This has been an extremely wonderful article.
Many thanks for providing this information.