When attempting to create a ClickDimensions record, such as a Domain record or a Web Content record, or when trying to add members to a Marketing List, the user may receive an error message Business Process Error that includes additional stack trace error information. This may be the result of a misconfigured logon account for the Microsoft Sandbox Processing service on the CRM server. (Applies to CRM 2011, 2013, 2015 and 2016 on-premise implementations.)
The ClickDimensions solution for Microsoft Dynamics CRM is designed to support both on-premise and CRM Online deployment. As such, the plugin included with the solution is registered during solution import in the isolated (Sandbox) mode. If the Sandbox processing service is using a custom domain account, as opposed to the 'NT AUTHORITYNETWORK SERVICE' account, the permissions for the custom account must be properly set in order for the Sandbox service to properly execute plugins that are registered in isolated mode. The error log may indicate an error similar to the following messages :
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Error in Domain plugin, Message:System.ServiceModel.Security.SecurityNegotiationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #2780C68FStack: Server stack trace: at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte serializedRequest) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
'Error in AddMemberList plugin, Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.'
There are two ways to resolve this error:
Change the ClickDimensions plugin's isolation mode to 'None.'
Using the Plugin Registration Tool, manually update the plugin so that it is not using the Sandbox isolation mode (as indicated in the image below). NOTE: If the ClickDimensions solution is uninstalled and reinstalled, you must repeat this step or configure the proper permissions for the Sandbox processing service logon account.
Configure the correct permissions for the Sandbox Processing Service logon account
This is the recommended approach. Ensure that the login account for the Sandbox processing service on the CRM server has the correct permissions as identified in these articles:
- http://technet.microsoft.com/en-us/library/hh699825.aspx#BKMK_MinimumPermissions (see the section headed ‘Microsoft Dynamics CRM Sandbox Processing Service’).