ASP.net failed to load the file or assembly "XXX" or one of its dependencies. An attempt was made to load an incorrectly formatted program. _ Practical Tips

Source: Internet
Author: User
Tags stack trace
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.

Exception Details: system.badimageformatexception: Failed to load file or assembly "XXX" or one of its dependencies. An attempt was made to load an incorrectly formatted program.

SOURCE Error:

An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace to determine information about the cause of the exception and where it occurred.

Assembly Load Trace: The following information helps determine why assembly "XXX" cannot be loaded.


Warning: Assembly binding logging is turned off. To enable assembly binding failure logging,
Please place the registry value [hklm\software\microsoft\fusion! Enablelog] (DWORD) is set to 1.
Note: There are some performance losses associated with assembly binding failure logging.
To turn off this feature, remove the registry value [hklm\software\microsoft\fusion! Enablelog

Local test is fine, there is a problem with the IP address test

Solve:

Build the application as the target platform: any CPU;
The test environment is the notebook Win7 64 bits, the IIS application pool-Advanced settings-enable 32-bit applications: true
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.