Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM 2016 8.1 on-premise - Click Dimensions sandbox plugin error

Posted on by 110

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans