Dear Experts,
I have a plugin which is triggered on Delete message(Pre-validation) of campaign entity and it used to update some fields in 'account' entity using SQL stored procedure. Month back it was absolutely working fine but now it is giving me a SecurityPermission error when it is trying to access the registries from ocalMachine/Software/Microsoft/MSCRM.
Please note that:
1. We did not made any changes in our code.
2. Using SQL SP is unsupported but due to the requirement we need to use SQL stored procedure only.
Error Details:
Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Environment and Plugin Details:
MSCRM - 2013 SP1 On-Prem(6.1.1.132)
Plugin isolation mode - None
Step Message - Delete(Pre-validation)
Step Execution Mode - Sync
OS Details:
Windows Server 2012 R2 - 64 bit (Latest updates are installed)
Already tried:
- Enabled tracing through registry keys and collected the issue traces but didnt helped us to resolve the issue.
- Give full control to LocalMachine/Software/Microsoft/MSCRM and mscorlib file located at 'E:\Program Files\Microsoft Dynamics CRM\CRMWeb\_static\_common\scripts'
Is there any permission need to provide to resolve this error? If yes, then please help with those permissions.
Thanks in advance.
*This post is locked for comments