IIS 7.5 Fixing An attempt was made to load a program with an incorrect format problem?

前端 未结 1 458
有刺的猬
有刺的猬 2020-12-01 13:56

I have a unusual problem throwing an exception \"An attempt was made to load a program with an incorrect format\" error? I have two identical websites on the same IIS server

相关标签:
1条回答
  • 2020-12-01 14:06

    Found the problem - The solution is in the way that the two AppPools are configured:

    • Default Website/my_app is using DefaultAppPool where Enable 32-Bit applications is TRUE
    • Beta/my_app -> BetaAppPool is using Enable 32-Bit applications is FALSE

    Changing BetaAppPool to set Enable 32-Bit applications to TRUE has fixed this problem.

    Solution was found by @Rick on this question: C# Entity Framework 4 Common Language Runtime detected an invalid program error?

    0 讨论(0)
提交回复
热议问题