Unhandled Exception: An error occurred in the plug-in CRM_2011_Auto_Counter

Dec 23, 2011 at 10:18 AM

Hi all,

 

I  have a CRM 2011 environment consisting of a front-end, back-end and separate ADFS server. I loaded the solution Auto Counter, configured it, but when creating an account the following error occurs:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred in the plug-in.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>CallStack</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">   at CRM_2011_Auto_Counter.MyPlugin.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IServiceEndpointNotificationService serviceBusService, IOrganizationServiceFactory organizationServiceFactory, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext)
   at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IServiceEndpointNotificationService serviceBusService, IOrganizationServiceFactory organizationServiceFactory, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext)
   at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter&amp; workerCounter)</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>An error occurred in the plug-in.</Message>
  <Timestamp>2011-12-23T11:08:04.1890848Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[CRM 2011 Auto Counter: CRM_2011_Auto_Counter.MyPlugin]
[5921f7f0-8c17-e111-887b-00155d01887a: CRM_2011_Auto_Counter.MyPlugin: Create of account]


</TraceText>
</OrganizationServiceFault>

Anybody have a clue?

Thanks in advance,

 

Regards Dennis

 

 

Coordinator
Jan 3, 2012 at 2:17 AM

Hi Dennis,

Sorry for the delay reply. Can you do a CRM platform trace and post the error up?

Vincent