c# - BadImageFormatException when running application -


i badimageformatexception when running c#/vb smartclient application any cpu configuration. if use x86 configuration runs fine. old, legacy project have modify , don't know history, can guess there dlls contain 32-bit native code causing error. makes sense, except when configuration debug & anycpu runs, when configuration release & anycpu fail. see no significant differences in debug.cfg.xml , release.cfg.xml files.

can why run in debug configuration? since works wonder if somehow possible running in x64 (ie anycpu)

from app.config:

  <startup>     <supportedruntime version="v4.0" sku=".netframework,version=v4.0"/>   </startup>   <startup uselegacyv2runtimeactivationpolicy="true">     <supportedruntime version="v4.0"/>   </startup> 

your application depends on 32 bit component. when run application 64 bit process, fails load 32 bit component process.

possible solutions include:

  1. revert running 32 bit.
  2. find 64 bit version of dependent component.

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -