I have never tested passing that much data through the CustomActionData property in DTF. I would guess it is some limitation in the CA out-of-proc remoting mechanism, though I'd have to debug it to find out the exact issue.
As an alternative design, could you consider passing the data via a temporary file? You'll have to be careful to think about the security and file access issues (since a deferred CA can run as admin while the immediate does not), but that might be a better approach for passing a large amount of data. -Jason- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Berkovich Sent: Tuesday, September 02, 2008 9:23 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] DTF DoAction throw exception Any idea? Is it bug or I have some problem in my CA? Thanks, Dima On Sun, Aug 31, 2008 at 10:15 AM, Dmitry Berkovich <[EMAIL PROTECTED]> wrote: > Hi, > I developed my custom action, where I passing to CA some properties. > Part of properties is from byte[] type. Exception is thrown when > DoAction is called where CustomAtionData contains properties with size > 54K or more (i didn't check what is exactly minimal size is needed). > > > System.Reflection.TargetInvocationException: Exception has been thrown > by the target of an invocation. ---> > System.Runtime.InteropServices.COMException (0x80070006): The handle > is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) > at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 > errorCode, IntPtr errorInfo) > at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 > errorCode) > at System.Runtime.InteropServices.Marshal.FreeHGlobal(IntPtr hglobal) > at > Microsoft.Deployment.WindowsInstaller.RemotableNativeMethods.MsiFunc_ISS(RemoteMsiFunctionId > id, Int32 in1, String in2, String in3) > at Microsoft.Deployment.WindowsInstaller.Session.set_Item(String > property, String value) > at Microsoft.Deployment.WindowsInstaller.Session.DoAction(String > action, CustomActionData actionData) > at Intel.Common.Ext.SqlCA.CA.InstallSql(Session session) > --- End of inner exception stack trace --- > at System.RuntimeMethodHandle._InvokeMethodFast(Object target, > Object arguments, SignatureStruct& sig, MethodAttributes > methodAttributes, RuntimeTypeHandle typeOwner) > at System.RuntimeMethodHandle.InvokeMethodFast(Object target, > Object arguments, Signature sig, MethodAttributes methodAttributes, > RuntimeTypeHandle typeOwner) > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, > BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo > culture, Boolean skipVisibilityChecks) > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, > BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo > culture) > at > Microsoft.Deployment.WindowsInstaller.CustomActionProxy.InvokeCustomAction(Int32 > sessionHandle, String entryPoint, IntPtr remotingDelegatePtr) > > > Is it some limitation of MSI that property is bounded to specific size > or its bug in DTF? > > > Thanks in advance, > Dima > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users