Hi All,
I get the following error when trying to run VS2010 Custom Action Project
with Wix 3.5.
Invoking remote custom action. DLL: C:\Windows\Installer\MSI24A2.tmp,
Entrypoint: ValidateSerialNumberKey
Generating random cookie.
Created Custom Action Server with PID 1224 (0x4C8).
Running as a service.
Hello, I'm your 32bit Impersonated custom action server.
SFXCA: Extracting custom action to temporary directory:
C:\Windows\Installer\MSI24A2.tmp-\
SFXCA: Binding to CLR version v2.0.50727
Error: could not load custom action class CustomAction from assembly X
System.BadImageFormatException: Could not load file or assembly 'X' or one
of its dependencies. This assembly is built by a runtime newer than the
currently loaded runtime and cannot be loaded.
File name: 'X'
at System.Reflection.Assembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
at System.AppDomain.Load(String assemblyString)
at
Microsoft.Deployment.WindowsInstaller.CustomActionProxy.GetCustomActionMethod(Session
session, String assemblyName, String className, String methodName)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value (DWORD) to
1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value .
Action ended 0:05:31: ValidateSerialNumber. Return value 3.
Action ended 0:05:31: INSTALL. Return value 3.
I am confused as to why it should bind to CLR 2.0 when i am using the target
framework as .Net 4.0
So,I modified the MakeSFXCA config file the following way:
<startup useLegacyV2RuntimeActivationPolicy="false">
<supportedRuntime version="v4.0" />
<!-- <supportedRuntime version="v2.0.50727" /> -->
</startup>
Then,it throws the following error:
SFXCA: Extracting custom action to temporary directory:
C:\WINDOWS\Installer\MSI15.tmp-\ SFXCA: Failed to get requested CLR info.
Error code 0x80131700 SFXCA: Ensure that the proper version of the .NET
Framework is installed, or that there is a matching supportedRuntime element
in CustomAction.config.
Could some please help me with this?
Thanks,
Ramya
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WiX-3-5-C-Custom-Action-Project-tp5320937p5320937.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users