.net - MakeSfxCA.exe and DLL compiled with Framework 4.0 -
i have dll file compiled microsoft .net framework 4.0
when using makesfxca.exe file , passing dll 1 of parameter command line gives me following error message:
d:\setupmanager\test>d:\setupmanager\setupbuilding\wix\bin\sdk\makesfxca.exe fil e2.dll d:\setupmanager\setupbuilding\wix\bin\sdk\x86\sfxca.dll file1.dll customa ction.config searching custom action entry points in file1.dll error: system.badimageformatexception: not load file or assembly 'file:/// d:\setupmanager\test\file1.dll' or 1 of dependencies. **this assembly bui lt runtime newer loaded runtime , cannot loaded.** file name: 'file:///d:\setupmanager\test\file1.dll' @ system.reflection.assembly._nload(assemblyname filename, string codebase, evidence assemblysecurity, assembly locationhint, stackcrawlmark& stackmark, boo lean throwonfilenotfound, boolean forintrospection) @ system.reflection.assembly.nload(assemblyname filename, string codebase, e vidence assemblysecurity, assembly locationhint, stackcrawlmark& stackmark, bool ean throwonfilenotfound, boolean forintrospection) @ system.reflection.assembly.internalload(assemblyname assemblyref, evidence assemblysecurity, stackcrawlmark& stackmark, boolean forintrospection) @ system.reflection.assembly.internalloadfrom(string assemblyfile, evidence securityevidence, byte[] hashvalue, assemblyhashalgorithm hashalgorithm, boolean forintrospection, stackcrawlmark& stackmark) @ system.reflection.assembly.reflectiononlyloadfrom(string assemblyfile) @ microsoft.deployment.tools.makesfxca.makesfxca.findentrypoints(string modu le) @ microsoft.deployment.tools.makesfxca.makesfxca.build(string output, string sfxdll, ilist`1 inputs, textwriter log) @ microsoft.deployment.tools.makesfxca.makesfxca.main(string[] args) === pre-bind state information === log: user = dsdmain\rajesh log: where-ref bind. location = d:\setupmanager\test\file1.dll log: appbase = file:///d:/setupmanager/setupbuilding/wix/bin/sdk/ log: initial privatepath = null calling assembly : (unknown). === log: inspection bind. log: no application configuration file found. log: using machine configuration file c:\windows\microsoft.net\framework\v2 .0.50727\config\machine.config. log: attempting download of new url file:///d:/setupmanager/test/file1.dll. err: failed complete setup of assembly (hr = 0x8013101b). probing terminated.
any appreciated.
thanks in advance.
i got similar issue working adding following code customactions.config file , creating makesfxca.exe.config file next makesfxca.exe
<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup uselegacyv2runtimeactivationpolicy="true"> <supportedruntime version="v4.0" /> </startup> </configuration>
Comments
Post a Comment