开发者

Running a .NET 2.0 app windows form app on Windows 7 with Aero enabled causes menu interactions to crash the application

开发者 https://www.devze.com 2023-03-13 05:03 出处:网络
I have a legacy .NET 2.0 windows forms application that I am working with. It works fine in XP but in Windows 7, if an aero theme is enabled the app starts up, but crashes when you click \'File\' in t

I have a legacy .NET 2.0 windows forms application that I am working with. It works fine in XP but in Windows 7, if an aero theme is enabled the app starts up, but crashes when you click 'File' in the menu bar. The application runs fine when using a windows basic theme. It also runs fine if I select the 'Disable Desktop Composition' item in the properties of the shortcut.

I have run the开发者_JAVA百科 code in visual studio with all exceptions turned on and found nothing. The regular windows event logs are no help either.


Please check the following items an give it another try:

  1. Check for 32 or 64 bit OS, both in IDE and your OS.
  2. Keep the .config file with the .exe file
  3. try to repair .net 2
0

精彩评论

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

关注公众号