开发者

Windows 7 x64 .Net App Crash (works on everything else)

I'm working on a .net application compiled for "Any CPU". We have succesfully deployed the application to mutliple environments. The only one giving us issue is Windows 7 x64 (it is crashing immediately complaining for BadImageFormatException). When I run the application with Process Monitor attached, I get the following before it initiates Windows Error Reporting.

07:11.3 3544 RegOpenKey HKLM\SOFTWARE\Microsoft\CTF\KnownClasses NAME NOT FOUND
07:11.3 3544 CreateFile C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\comctl32.dll NAME NOT FOUND
07:11.4 3544 CreateFile C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\comctl32.dll NAME NOT FOUND
07:11.4 3544 CreateFile C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\comctl32.dll NAME NOT FOUND
07:11.6 3544 RegOpenKey HKLM\SOFTWARE\Microsoft\CTF\KnownClasses NAME NOT FOUND
07:11.6 3544 CreateFile C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\comctl32.dll NAME NOT FOUND
07:11.8 3544 RegOpenKey HKCU\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting开发者_StackOverflow NAME NOT FOUND

Has anyone else seen this?


As a follow up to Hans' point, check the following:

Site Link

Essential part:

You need to set Properties > Build > Platform target to "x86". This will force it to run in WoW64, so the 32-bit mixed model Phoenix assemblies will load.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜