[.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.


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

  1. Hi there, just wanted to tell you, I liked this blog post. It was funny. Keep on posting!| а

  2. best hosting says:

    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!

  3. Pretty! This has been an extremely wonderful article.
    Many thanks for providing this information.

Leave a Reply

Your email address will not be published. Required fields are marked *

CodingSchnauzer ©2020. All Rights Reserved.