I have a addon component that we have used many times before. However, on a particular site, I have had problems installing it. The addon component makes use of a .net dll to display some screen. Whenever I navigate to a screen generated by the dll, I get an error saying 'File not found', 'An error has occurred in a CRM .net customisation. Please contact your vendor to resolve'.
I have turn on maximum .net security and the following is what I got:
Class: CRMWrapper - Method: ExecWebPageNew - Error: Could not load file or assembly ', Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. PolicyException thrown. (Exception from HRESULT: 0x80131416)
Oct 11 2013 13:42:19.553 5744 7660 5 StackTrace:
Error: More than one exclusive group is not allowed.
at System.Security.Policy.PolicyLevel.GenericResolve(Evidence evidence, Boolean& allConst)
at System.Security.Policy.PolicyLevel.Resolve(Evidence evidence, Int32 count, Char[] serializedEvidence)
at System.Security.PolicyManager.CodeGroupResolve(Evidence evidence, Boolean systemPolicy)
at System.Security.PolicyManager.ResolveHelper(Evidence evidence)
at System.Security.HostSecurityManager.ResolvePolicy(Evidence evidence)
at System.Security.PolicyManager.Resolve(Evidence evidence)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission)
I have given everyone access to the CustomDotNet folder, but I think this has something to do with .net framework and caspol.
I have tried the following, but it didn't help:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file://E:\Company Data\Sage200\CRM\CRM\CustomDotNet\*" FullTrust -exclusive on
PAUSE
Has anyone got any suggestions. This is CRM version 7.1.g
Thanks
Andrew