Error on startup of AgentDesktop.exe & CRM Server

May 12, 2010 at 2:27 PM

Hi 

 

I'm getting an error on startup of AgentDesktop.exe. 

The reported error from the application states: DESKTOP_ERR_FATAL_ERROR:A possibly fatal error has occurred.  The application may now exit.

I ran the CRM Diagnostics tool on the CRM server, and saw the following error:

>MessageProcessor start executing step 1861378c-43ff-de11-811a-00155d289c61 of type 'Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin' synchronously for message 'Create' for entity 'uii_sessiontransfer' correlationId 3885b143-aa91-483a-8a13-c987ce832499.
[2010-05-12 16:10:15.9] Process: w3wp |Organization:a5d45a24-5770-41eb-9a08-c1290dc76491 |Thread:    7 |Category: Platform.Sdk |User: c0a4aef3-8bc1-dd11-9a58-005056ac2715 |Level: Error | PluginStep.Execute
	at PluginStep.Execute(PipelineExecutionContext context)
	at Pipeline.Execute(PipelineExecutionContext context)
	at MessageProcessor.Execute(PipelineExecutionContext context)
	at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
	at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
	at CrmServiceInternal.Create(String namespaceName, BusinessEntityBase entity, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
	at CrmService.Create(BusinessEntity entity)
	at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
	at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle 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 culture)
	at LogicalMethodInfo.Invoke(Object target, Object[] values)
	at WebServiceHandler.Invoke()
	at WebServiceHandler.CoreProcessRequest()
	at SyncSessionlessHandler.ProcessRequest(HttpContext context)
	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
	at ApplicationStepManager.ResumeSteps(Exception error)
	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
	at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>Web Service Plug-in failed in SdkMessageProcessingStepId: {1861378C-43FF-DE11-811A-00155D289C61}; EntityName: uii_sessiontransfer; Stage: 10; MessageName: Create; AssemblyName: Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin, Microsoft.Uii.Customization.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin; Exception: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin.BuildQueryToRetrieveRecordsBasedonName(DynamicEntity entity, DynamicEntity preImageEntity, String colName)
   at Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin.Execute(IPluginExecutionContext context)
   at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
.
[2010-05-12 16:10:15.9] Process: w3wp |Organization:a5d45a24-5770-41eb-9a08-c1290dc76491 |Thread:    7 |Category: Platform |User: c0a4aef3-8bc1-dd11-9a58-005056ac2715 |Level: Verbose | ExecutionContext.OnErrorRequest
	at ExecutionContext.OnErrorRequest()
	at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
	at CrmServiceInternal.Create(String namespaceName, BusinessEntityBase entity, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
	at CrmService.Create(BusinessEntity entity)
	at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
	at RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle 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 culture)
	at LogicalMethodInfo.Invoke(Object target, Object[] values)
	at WebServiceHandler.Invoke()
	at WebServiceHandler.CoreProcessRequest()
	at SyncSessionlessHandler.ProcessRequest(HttpContext context)
	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
	at ApplicationStepManager.ResumeSteps(Exception error)
	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
	at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>ExecutionContext not in use (OnErrorRequest) for organization {A5D45A24-5770-41EB-9A08-C1290DC76491}
[2010-05-12 16:10:15.9] Process: w3wp |Organization:a5d45a24-5770-41eb-9a08-c1290dc76491 |Thread:    7 |Category: Platform.Soap |User: c0a4aef3-8bc1-dd11-9a58-005056ac2715 |Level: Warning | SoapContext.DumpErrorResponse
	at SoapContext.DumpErrorResponse(Stream responseStream, Uri uri, String methodName)
	at CrmAuthenticationSoapExtensionBase.ProcessMessage(SoapMessage message)
	at SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)
	at SoapServerProtocol.WriteException(Exception e, Stream outputStream)
	at WebServiceHandler.WriteException(Exception e)
	at WebServiceHandler.Invoke()
	at WebServiceHandler.CoreProcessRequest()
	at SyncSessionlessHandler.ProcessRequest(HttpContext context)
	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
	at ApplicationStepManager.ResumeSteps(Exception error)
	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
	at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>SOAP Request failed:
Url:http://196.2.157.124:5555/MSCrmServices/2007/CrmService.asmx
MethodName:Create
Response:



soap:Server
Server was unable to process request. ---> Object reference not set to an instance of an object. ---> Object reference not set to an instance of an object.




[2010-05-12 16:10:15.9] Process: w3wp |Organization:a5d45a24-5770-41eb-9a08-c1290dc76491 |Thread:    7 |Category: Platform.Sdk |User: c0a4aef3-8bc1-dd11-9a58-005056ac2715 |Level: Error | PluginExecutionExceptionHandler.Handle
	at PluginExecutionExceptionHandler.Handle(Stream from, Stream to, Exception exception)
	at CompositeSoapExtensionExceptionHandler.Handle(Stream to, Stream from, Exception exception)
	at CrmAuthenticationSoapExtensionBase.ProcessMessage(SoapMessage message)
	at SoapMessage.RunExtensions(SoapExtension[] extensions, Boolean throwOnException)
	at SoapServerProtocol.WriteException(Exception e, Stream outputStream)
	at WebServiceHandler.WriteException(Exception e)
	at WebServiceHandler.Invoke()
	at WebServiceHandler.CoreProcessRequest()
	at SyncSessionlessHandler.ProcessRequest(HttpContext context)
	at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
	at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
	at ApplicationStepManager.ResumeSteps(Exception error)
	at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
	at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
	at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
	at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
>CrmSoapExtension detected InvalidPluginExecutionException:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Microsoft.Crm.Sdk.InvalidPluginExecutionException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin.BuildQueryToRetrieveRecordsBasedonName(DynamicEntity entity, DynamicEntity preImageEntity, String colName)
   at Microsoft.Uii.Customization.Plugin.RestrictDataDuplicationPlugin.Execute(IPluginExecutionContext context)
   at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
   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 callerId)
   at Microsoft.Crm.Sdk.Crm2007.CrmService.Create(BusinessEntity entity)
   --- End of inner exception stack trace ---

 

Am I missing something? The install and import seemed to work fine.

 

Thanks

May 12, 2010 at 2:36 PM

OK, seems it was my own stupidity :P

The plugin import somehow didn't work too well. All of the primary entities of the plugins were set to 'none'. I updated them to the correct values and everything worked.

Jun 7, 2010 at 9:21 PM

Hi sluiper,

I'm having the same error like you. Could you elaborate how you resolved this issue. I'm not quite sure which primarity entites on the plugins that were set to 'none' there you was referring to.

Thanks

Jun 8, 2010 at 6:47 AM

Hi

Check that when you use the Plugin Registration Tool that your entities look like this: 

<a href="http://tinypic.com" target="_blank"><img src="http://i48.tinypic.com/kce9lu.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

and that the Primary Entity is not set to "none" but the correct entity name,