简体   繁体   中英

Error while trying to run project in VS 2012

I am creating a Windows Form application and trying to debug it. It displays the following error:

error while trying to run project could not load file or assembly or one of its dependencies

I updated and repaired my Visual Studio but error is same. When I go to bin\\debug and try to run .exe it shows this error:

the application was unable to start correctly (0xc000007b)

0xc000007b means STATUS_INVALID_IMAGE_FORMAT, this is an indication that your x86 application tries to load an x64 dll, or that your application target is x64, to check this you can look in the Project properties->Build->Target Platform 平台目标检查

If your platform target is not x64 you can check your application dependencies with Dependency Walker and look if one or more of them is a 64 bit dll.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM