2012-02-29 61 views
0

我在Crm 4.0總結了自定義工作流程,它有大約10個活動,每次我改變它我得到一個unknknown錯誤,它不能被更新。當嘗試瀏覽到Crm中的工作流設計器時,這也會導致NullRerferenceException。Crm 4.0未知錯誤更新工作流程組件

奇怪的是,它只發生在這個程序集,如果我刪除它,並重新從頭開始添加它工作正常。

這是錯誤,我得到...

未處理的異常:System.Web.Services.Protocols.SoapException:服務器無法處理請求。 詳細信息: 0x80040216 發生意外錯誤。 平臺 在System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage消息,WebResponse的響應,流responseStream,布爾asyncCall) 在System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(字符串方法名,對象[]參數) 在PluginRegistrationTool.CrmSdk.CrmService.Create(的BusinessEntity實體) 在PluginRegistrationTool.RegistrationHelper.RegisterPluginType(CrmOrganization組織,CrmPlugin插件) 在PluginRegistrationTool.PluginRegistrationForm.btnRegister_Click(對象發件人,EventArgs的)

而當我啓用跟蹤我得到下面的呃羅斯,有沒有人知道該從哪裏出發?

對不起,跟蹤日誌的這種自動傾卸大...

無法檢索引用的預期對象ID單個屬性時,屬性:{45D0F927-5258-E111-AD6A-000C2954073E} [2012 -02-29 08:45:50.1]進程:w3wp |組織:a9ae572d-fabe-4c6c-9a39-8d8882462a55 |線程:21 |分類:平臺|用戶:d6ef60ac-4638-de11-ba36-000f1f66b919 |等級:錯誤| MessageProcessor.Execute 在MessageProcessor.Execute(PipelineExecutionContext上下文) 在InternalMessageDispatcher.Execute(PipelineExecutionContext上下文) 在ExternalMessageDispatcher.Execute(字符串messageName,的Int32 primaryObjectTypeCode,的Int32 secondaryObjectTypeCode,屬性包字段,CorrelationToken correlationToken,CallerOriginToken originToken,USERAUTH USERAUTH,來電顯示的Guid ) 在CrmServiceInternal.Create(字符串namespaceName,BusinessEntityBase實體,CorrelationToken correlationToken,CallerOriginToken originToken,USERAUTH USERAUTH,來電顯示的Guid) 在CrmService.Create(的BusinessEntity實體) 在RuntimeMethodHandle._InvokeMethodFast(對象目標,對象[]參數,SignatureStruct & sig,MethodAttributes methodAttributes,RuntimeTypeHan dll typeOwner) at RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object [] parameters,CultureInfo culture,Boolean skipVisibilityChecks) at RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object [] parameters,CultureInfo在LogicalMethodInfo.Invoke(對象目標培養) ,在WebServiceHandler.CoreProcessRequest() 對象[]值) 在WebServiceHandler.Invoke() 在SyncSessionlessHandler.ProcessRequest(HttpContext的上下文) 在CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep .Execute() at HttpApplication。ExecuteStep(IExecutionStep步驟,布爾& completedSynchronously) 在ApplicationStepManager.ResumeSteps(異常錯誤) 在HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext的上下文中,的AsyncCallback CB,而額外對象) 在HttpRuntime.ProcessRequestInternal(的HttpWorkerRequest WR) 在HttpRuntime.ProcessRequestNoDemand(的HttpWorkerRequest WR) 在ISAPIRuntime.ProcessRequest(IntPtr的ECB,的Int32 iWRType)

失敗的MessageProcessor處理消息關於 'plugintype' '創建'。 [2012-02-29 08:45:50.2]進程:w3wp |組織:a9ae572d-fabe-4c6c-9a39-8d8882462a55 |線程:21 |分類:Platform.Sdk |用戶:d6ef60ac-4638-de11-ba36-000f1f66b919 |級別:錯誤| CompositeSoapExtensionExceptionHandler.Handle 在CompositeSoapExtensionExceptionHandler.Handle(流到,從流,異常的異常) 在CrmAuthenticationSoapExtensionBase.ProcessMessage(的SOAPMessage消息) 在SoapMessage.RunExtensions(的SoapExtension []擴展,布爾throwOnException) 在SoapServerProtocol.WriteException(例外五,流的OutputStream) 在WebServiceHandler.WriteException(例外五) 在WebServiceHandler.Invoke() 在WebServiceHandler.CoreProcessRequest() 在SyncSessionlessHandler.ProcessRequest(HttpContext的上下文) 在CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecuti onStep步驟,布爾& completedSynchronously) 在ApplicationStepManager.ResumeSteps(異常錯誤) 在HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext的上下文中,的AsyncCallback CB,而額外對象) 在HttpRuntime.ProcessRequestInternal(的HttpWorkerRequest WR) 在的httpRuntime。 ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb,Int32 iWRType) CrmSoapExtension檢測到非CrmException - 報告將發送至Watson: System.Web.Services.Protocols.SoapException:服務器無法處理請求。 ---> System.Reflection.TargetInvocationException:調用的目標引發了異常。 ---> System.NullReferenceException:未將對象引用設置爲對象的實例。 在Microsoft.Crm.ObjectModel.PluginTypeServiceInternal 1.CheckDuplicateActivityName(String name, ExecutionContext context) at Microsoft.Crm.ObjectModel.PluginTypeServiceInternal 1.ValidateCustomActivity(PluginType實體,的ExecutionContext上下文) 在Microsoft.Crm.ObjectModel.PluginTypeServiceInternal`1.Create(IBusinessEntity實體,的ExecutionContext上下文) ---內部異常堆棧跟蹤的結尾---在 System.RuntimeMethodHandle._InvokeMethodFast(對象目標,對象[]參數,SignatureStruct & SIG,MethodAttributes methodAttributes,的RuntimeTypeHandle typeOwner) 在System.Reflection.RuntimeMethodInfo.Invoke(對象OBJ,的BindingFlags invokeAttr,粘結劑粘結劑,對象[ ]參數,CultureInfo文化,布爾skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object [] parameter s),CultureInfo culture) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context) at Microsoft.Crm.Extensibility。在System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target,Object [] values) 。 PluginStep.Execute(PipelineExecutionContext上下文) 在Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext上下文) 在Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext上下文) 在Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext上下文) at Microsoft.Crm.Extensibility.ExternalMessageDispatcher。Execute(String messageName,Int32 primaryObjectTypeCode,Int32 secondaryObjectTypeCode,PropertyBag fields,CorrelationToken correlationToken,CallerOriginToken originToken,UserAuth userAuth,Guid callerId) at Microsoft.Crm.Sdk.CrmServiceInternal.Create(String namespaceName,BusinessEntityBase entity,CorrelationToken correlationToken,CallerOriginToken originToken, USERAUTH USERAUTH,來電顯示的Guid) 在Microsoft.Crm.Sdk.Crm2007.CrmService.Create(的BusinessEntity實體) ---內部異常堆棧跟蹤的結尾---

[2012-02-29 08: 46:03.7]程序:w3wp |組織:a9ae572d-fabe-4c6c-9a39-8d8882462a55 |帖子:21 |分類:平臺|用戶:d6ef60ac-4638-de11-ba36-000f1f66b919 |等級:錯誤| MessageProcessor.Execute 在MessageProcessor.Execute(PipelineExecutionContext上下文) 在InternalMessageDispatcher.Execute(PipelineExecutionContext上下文) 在ExternalMessageDispatcher.Execute(字符串messageName,的Int32 primaryObjectTypeCode,的Int32 secondaryObjectTypeCode,屬性包字段,CorrelationToken correlationToken,CallerOriginToken originToken,USERAUTH USERAUTH,來電顯示的Guid ) 在CrmServiceInternal.Create(字符串namespaceName,BusinessEntityBase實體,correlationToken correlationToken,CallerOriginToken originToken,USERAUTH USERAUTH,來電顯示的Guid) 在CrmService.Create(的BusinessEntity實體) 在RuntimeMethodHandle._InvokeMethodFast(對象目標,對象[]參數,SignatureStruct & sig,MethodAttributes methodAttributes,RuntimeTypeHandle ty (Object obj,BindingFlags invokeAttr,Binder binder,Object []參數,CultureInfo culture)在RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []參數,CultureInfo culture,布爾skipVisibilityChecks) ) 在LogicalMethodInfo.Invoke(對象目標,在CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep對象[]值)在WebServiceHandler.Invoke () 在WebServiceHandler.CoreProcessRequest() 在SyncSessionlessHandler.ProcessRequest(HttpContext的上下文) 。執行() 在HttpApplication.ExecuteStep(IExecutionStep步驟,布爾&已完成同步) 在ApplicationStepManager.Res umeSteps(異常錯誤) 在HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext的上下文中,的AsyncCallback CB,而額外對象) 在HttpRuntime.ProcessRequestInternal(的HttpWorkerRequest WR) 在HttpRuntime.ProcessRequestNoDemand(的HttpWorkerRequest WR) 在ISAPIRuntime.ProcessRequest( IntPtr ecb,Int32 iWRType)

MessageProcessor無法處理'plugintype'消息'Create'。 [2012-02-29 08:46:03.7]處理:w3wp |組織:a9ae572d-fabe-4c6c-9a39-8d8882462a55 |帖子:21 |分類:Platform.Sdk |用戶:d6ef60ac-4638-de11-ba36-000f1f66b919 |級別:錯誤| CompositeSoapExtensionExceptionHandler.Handle 在CompositeSoapExtensionExceptionHandler.Handle(流到,從流,異常的異常) 在CrmAuthenticationSoapExtensionBase.ProcessMessage(的SOAPMessage消息) 在SoapMessage.RunExtensions(的SoapExtension []擴展,布爾throwOnException) 在SoapServerProtocol.WriteException(例外五,流的OutputStream) 在WebServiceHandler.WriteException(例外五) 在WebServiceHandler.Invoke() 在WebServiceHandler.CoreProcessRequest() 在SyncSessionlessHandler.ProcessRequest(HttpContext的上下文) 在CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication。ExecuteStep(IExecutionStep步驟,布爾& completedSynchronously) 在ApplicationStepManager.ResumeSteps(異常錯誤) 在HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext的上下文中,的AsyncCallback CB,而額外對象) 在HttpRuntime.ProcessRequestInternal(的HttpWorkerRequest WR) 在HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb,Int32 iWRType) CrmSoapExtension檢測到非CrmException - 報告將發送至Watson: System.Web.Services.Protocols.SoapException:服務器無法處理請求。 ---> System.Reflection.TargetInvocationException:調用的目標引發了異常。 ---> System.NullReferenceException:未將對象引用設置爲對象的實例。 在Microsoft.Crm.ObjectModel.PluginTypeServiceInternal 1.CheckDuplicateActivityName(String name, ExecutionContext context) at Microsoft.Crm.ObjectModel.PluginTypeServiceInternal 1.ValidateCustomActivity(PluginType實體,的ExecutionContext上下文) 在Microsoft.Crm.ObjectModel.PluginTypeServiceInternal`1.Create(IBusinessEntity實體,的ExecutionContext上下文) ---內部異常堆棧跟蹤的結尾---在 System.RuntimeMethodHandle._InvokeMethodFast(對象目標,對象[]參數,SignatureStruct & SIG,MethodAttributes methodAttributes,的RuntimeTypeHandle typeOwner) 在System.Reflection.RuntimeMethodInfo.Invoke(對象OBJ,的BindingFlags invokeAttr,粘結劑粘結劑,對象[ ]參數,CultureInfo文化,布爾skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object [] parameter s),CultureInfo culture) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context) at Microsoft.Crm.Extensibility。在System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target,Object [] values) 。 PluginStep.Execute(PipelineExecutionContext上下文) 在Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext上下文) 在Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext上下文) 在Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext上下文) at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName,Int32 primaryObjectTypeCode,Int32 secondaryObjectTypeCode,PropertyBag fields,CorrelationToken correlationToken,Call erOriginToken originToken,USERAUTH USERAUTH,來電顯示的Guid) 在Microsoft.Crm.Sdk.CrmServiceInternal.Create(字符串namespaceName,BusinessEntityBase實體,CorrelationToken correlationToken,CallerOriginToken originToken,USERAUTH USERAUTH,來電顯示的Guid) 在Microsoft.Crm.Sdk.Crm2007.CrmService .Create(的BusinessEntity實體) ---內部異常堆棧跟蹤的結尾---

+0

也許有重複記錄? – Anwar 2012-02-29 14:21:33

回答

2

我在增加細節的順序看到的關鍵部分:

的MessageProcessor無法處理爲「消息「創建」 plugintype'

Microsoft.Crm.ObjectModel.PluginTypeServiceInternal1。 CheckDuplicateActivityName

對象ID期待單個屬性時,無法檢索引用屬性:{45D0F927-5258-E111-AD6A-000C2954073E}

因此,我希望安華是正確的,這是一個重複。更具體地說,這個程序集有一個與現有插件名稱相同的插件。嘗試從插件表中選擇並查看名稱。

select name, * from plugintype 

name字段將是您的自定義程序集中的類名,它們不能被複制。您可以識別插件類,因爲它們從Microsoft.Xrm.Sdk.IPlugin繼承。