Hi,
- 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.)
- 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"
- 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<System.Guid>)' failed.
Any help will be much aprreciated.
Regards
thesagarlee