-
-
Notifications
You must be signed in to change notification settings - Fork 45
The System.BadImageFormatException exception
Jingwood edited this page Mar 15, 2021
·
1 revision
If the following exception caused when application starting up, try to change the platform target from 'Any CPU' to 'x86' in project settings.
System.BadImageFormatException: 'Could not load file or assembly 'd2dwinform, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null'. An attempt was made to load a program with an incorrect format.'
- Open project settings
- Switch to 'Build' property page
- Change 'Platform target' to 'x86'
Tips: You can create a new Configuration by copying from 'Any CPU' before the above change.