I currently have a Custom Action DLL that compiles with .Net 4 as the target Framework. The Advanced Installer project has a prerequisite for the .Net Framework 4.
The verbose logs states:
SFXCA: Extracting custom action to temporary directory: C:\Users\netmed\AppData\Local\Temp\MSI9C06.tmp-\
SFXCA: Binding to CLR version v2.0.50727
Calling custom action ActionName
Error: could not load custom action class ClassName from assmebly: AssemblyName
System.BadImageFormatException: Could not load file or assembly AssemblyName or one of its dependencies. This asembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
I'm a little confused where it intuits the CLR binding to v2.0.50727 instead of using the runtime the DLL compiles with. Is there anything I can do in Advanced Installer to fix this issue or is it a Visual Studio Solution problem that I need to sort out?
FOLLOW US
Get the latest news in Application Packaging