C # (64-bit System) solved & quot; failed to Load file or assembly, or one of its Dependencies... & quot ;,

Source: Internet
Author: User

C # (64-bit System) solves the "failure to load a file or assembly, or one of its Dependencies ...",

This problem usually occurs when a third-party DLL or a previously written DLL is referenced.

This problem may occur in 64-bit systems.

This problem occurs after downloading MySQLDriverCS and referencing it again today. Refer to some documents and the following solutions:

 

Change the target platform for project generation to x86 (default Any cpu.

Because the original DLL is generated on the 32-bit (x86) platform, but the program is an x64 platform, you need to change the target platform.

 

In the properties of the project, modify it.

Author: "Andrew's Blog"

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.