Failed to Load file or assembly "AAAAA" or one of its dependencies. Attackers try to load programs with incorrect format.

Source: Internet
Author: User

 

Failed to Load file or assembly "AAAAA" or one of its dependencies. Attackers try to load programs with incorrect format.

Note:An unhandled exception occurred during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.

Exception details:System. badimageformatexception: failed to Load file or assembly"AaaaaOr one of its dependencies. Attackers try to load programs with incorrect format.

Source error:

An unhandled exception is generated during the execution of the current Web request. You can use the following exception stack trace information to determine the cause and location of the exception.


Assembly loading tracking:The following information helps determine the assembly"Aaaaa"Cause of failure to load.

Warning assembly binding logging is disabled. To enable the Assembly Binding failure log, set the registry value to [HKLM \ Software \ Microsoft \ Fusion! Enablelog] (DWORD) is set to 1. Note: There will be some performance loss associated with the Assembly Binding failure log. To disable this function, remove the registry value [HKLM \ Software \ Microsoft \ Fusion! Enablelog].


Stack trace:

[Badimageformatexception: failed to Load file or assembly"AaaaaOr one of its dependencies. Attempts to load programs with incorrect format.] System. reflection. runtimeassembly. _ nload (assemblyname filename, string codebase, evidence assemblysecurity, runtimeassembly locationhint, stackcrawlmark & stackmark, Boolean throwonfilenotfound, Boolean forintrospection, Boolean suppresssecuritychecks) + 0 system. reflection. runtimeassembly. internalloadassemblyname (assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark & stackmark, Boolean forintrospection, Boolean suppresssecuritychecks) + 567 system. reflection. runtimeassembly. internalload (string assemblystring, evidence assemblysecurity, stackcrawlmark & stackmark, Boolean forintrospection) + 192 system. reflection. assembly. load (string assemblystring) + 35 system. web. configuration. compilationsection. loadassemblyhelper (string assemblyname, Boolean stardirective) + 118 [configurationerrorsexception: failed to Load file or assembly"AaaaaOr one of its dependencies. Attempts to load programs with incorrect format.] System. web. configuration. compilationsection. loadassemblyhelper (string assemblyname, Boolean stardirective) + 11392147 system. web. configuration. compilationsection. loadallassembliesfromappdomainbindirectory () + 484 system. web. configuration. assemblyinfo. get_assemblyinternal () + 127 system. web. compilation. buildmanager. getreferencedassemblies (compilationsection compconfig) + 334 system. web. compilation. buildmanager. callprestartinitmethods () + 280 system. web. hosting. hostingenvironment. initialize (applicationmanager appmanager, iapplicationhost apphost, iconfigmappathfactory configmappathfactory, hostingenvironmentparameters hostingparameters, policylevel, exception appdomaincreationexception) + 1087 [httpexception (0x80004005): failed to Load file or assembly"AaaaaOr one of its dependencies. Attempts to load programs with incorrect format.] System. web. httpruntime. firstrequestinit (httpcontext context) + 11524352 system. web. httpruntime. ensurefirstrequestinit (httpcontext context) + 141 system. web. httpruntime. processrequestnotificationprivate (iis7workerrequest WR, httpcontext context) + 4782309

 

Cause: the operating system is 64-bit, but the released program references some 32-bit DDL, so there is a compatibility problem.
Solution 1: If it is a 64-bit machine, IIS -- application pool -- advanced settings -- enable 32-bit application: True.
Solution 2: Modify project properties-generate-Target Platform (for example, x86 \ x64)

Failed to Load file or assembly "AAAAA" or one of its dependencies. Attackers try to load programs with incorrect format.

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.