问题描述
我正在调用一个名为DBInstaller的DLL,它显示以下异常并且安装程序无法运行。 ANY Idea
调用自定义操作DBInstaller!DBInstaller.InstallUtility.Install
自定义操作抛出的异常:
System.Reflection.TargetInvocationException:调用目标抛出了异常。 ---> System.Collections.Generic.KeyNotFoundException:给定的键不存在于字典中。
System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at at CRMnextDBInstaller.InstallUtility.Install(at CRMnextDBInstaller.InstallUtility.InstallUtility.Install)中的CRMnextDBInstaller.InstallUtility..dd(String会话)中的CRM.xtepation.WindowsInstaller.CustomActionData.get_Item(String key)
会话会话)
---内部异常堆栈跟踪的结束---
System at System.RuntimeMethodHandle._InvokeMethodFast(Object target,Object arguments,SignatureStruct& sig,MethodAttributes methodAttributes,RuntimeTypeHandle typeOwner)。 System.Reflection.RuntimeMethodInfo.Invoke的RuntimeMethodHandle.InvokeMethodFast(Object target,Object arguments,Signature sig,MethodAttributes methodAttributes,RuntimeTypeHandle typeOwner)
Object obj,BindingFlags invokeAttr, Binder binder,Object parameters,CultureInfo culture,Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BinderFlags invokeAttr,Binder binder,Object parameters,CultureInfo culture)
at Microsoft.Deployment.WindowsInstaller.CustomActionProxy .InvokeCustomAction(Int32 sessionHandle,String entryPoint,Int64 remotingDelegatePtr)
Kunal
kunal
I m calling a dll called DBInstaller which show following exception and installer fails to run. ANy Idea
Calling custom action DBInstaller!DBInstaller.InstallUtility.Install
Exception thrown by custom action:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Microsoft.Deployment.WindowsInstaller.CustomActionData.get_Item(String key)
at CRMnextDBInstaller.InstallUtility.ReadCustomData()
at CRMnextDBInstaller.InstallUtility..ctor(Session session)
at CRMnextDBInstaller.InstallUtility.Install(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, Int64 remotingDelegatePtr)
Thanks
Kunal
kunal
推荐答案
这篇关于我在wix中遇到了问题,我对此一无所知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!