How can I enable Assembly binding logging?

前端 未结 9 1546
长发绾君心
长发绾君心 2020-12-07 14:03

I\'m getting, \"Could not load file or assembly \'Bla\' or one of its dependencies. An attempt was made to load a program with an incorrect format.\"

A portion of th

相关标签:
9条回答
  • 2020-12-07 14:37

    Per pierce.jason's answer above, I had luck with:

    Just create a new DWORD(32) under the Fusion key. Name the DWORD to LogFailures, and set it to value 1. Then restart IIS, refresh the page giving errors, and the assembly bind logs will show in the error message.

    0 讨论(0)
  • 2020-12-07 14:38
    1. Create a new Application Pool

    2. Go to the Advanced Settings of this application pool

    3. Set the Enable 32-Bit Application to True

    4. Point your web application to use this new Pool

    Screenshot (IIS-ApplicationPool)

    0 讨论(0)
  • 2020-12-07 14:40

    When I had the same problem I fixed it by deleting the existing key.snk in that project and adding a new key.

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