Hi All,
Has anyone got Click Dimensions plugins work in Sandbox mode on an on-premise setup? Please comment if the answer is yes and if there was anything special you had to do to achieve that.
we are using CRM 2016 8.1 on-premise and installed Click Dimensions solution. Their plugins are registered under sandbox mode and one of them generates following error when triggered on a new record creation of their custom entity. It works fine if registered under no isolation mode.
I can replicate the error by using System.Diagnostics.Trace.TraceError class in my own custom plugin and registering it in sandbox mode. Click Dims support team claims its an environment issue but I am wondering if System.Diagnostics.Trace class can even be used when code is not executing in full trust.
Sandbox service seems to have all the permission it needs as per MS recommendation. Also we have Front End and Back End roles installed on separate servers.
ERROR:
System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Error in Domain plugin, Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.Message:Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.Stack: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Diagnostics.ListenerElementsCollection.GetRuntimeObject()
at System.Diagnostics.TraceInternal.get_Listeners()
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at ClickDimensions.Crm.MsCrm2011Plugins.Common.ExecuteWithRetry[T](Func`1 action)
Thanks,Amit
*This post is locked for comments