I am creating an installation version of my application that includes a trial licensing option. Several of my users have reported receiving the following error message (and I was able to reproduce this behavior on my machine as well):
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at <MyApplication>.InitTrial(String aKeyCode, IntPtr aHWnd)
I have version 7.2 of Advanced Installer. I am running Visual Studio 2008 with .NET 3.5 and am compiling to x86. I copied the code for using the trial dll from the TrialTestExample.NET sample in the help file. I also added the following to the post-build event command line:
call "$(DevEnvDir)..\Tools\vsvars32.bat"
editbin.exe /NXCOMPAT:NO "$(TargetPath)"
What do I need to modify in my application/installation to prevent this error.
FOLLOW US
Get the latest news in Application Packaging