Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Plugin / Custom Wokrflow Assemblies Partial Trust Issue

$
0
0

Hi,

  1. I have changed the name of my Custom Worklows DLL (say from "MyOrg.ModuleA.CustomWorkflows.dll"  to "MyNewOrg.ModuleB.CustomWorkflows.dll")  ( Done this change by from properties of my custom Workflows Project.)
  2. I have unregistered the Assembly - "MyOrg.ModuleA.CustomWorkflows.dll"  from CRM  using plugin Registration tool and then registered the new assembly -- "MyNewOrg.ModuleB.CustomWorkflows.dll"
  3. While executing the Custom Workflow, i get this error - Assembly 'MyNewOrg.ModuleB.CustomWorkflows, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3eef5b91b6f0f216' is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself.  In order to access security critical code, this assembly must be fully trusted

More Details -

<Message>Unexpected exception from plug-in (Execute): MyNewOrg.ModuleB.CustomWorkflows.MyWorkFlow1: System.InvalidOperationException: Error occured in Create Pay run workflow: Attempt by security transparent method 'MyNewOrg.ModuleB.CustomWorkflows.MyWorkFlow1.Execute(System.Activities.CodeActivityContext)' to access security critical method 'MyOrg.Domain.CrmRepositoryWrapper..ctor(Microsoft.Xrm.Sdk.IOrganizationService, System.String, System.Nullable`1&lt;System.Guid&gt;)' failed.

 

Any help will be much aprreciated.

 

Regards

thesagarlee


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>