Plugin ‘assembly can not be loaded’ error | Oracle Series
Issue
When you update an assembly through the Plugin Registration Tool or during solution import, you receive the error: assembly can not be loaded.
Unhandled Exception: System.ServiceModel.FaultException Assembly can not be loaded. Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.Update(Entity entity) at Xrm.Sdk.PluginRegistration.Helpers.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type) at Xrm.Sdk.PluginRegistration.Forms.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) Detail: dfa4ceec-2fe0-4fdd-80f6-fe28a47f3e71 -2147200995 ApiExceptionSourceKey Plugin/Microsoft.Crm.ObjectModel.PluginAssemblyService ApiOriginalExceptionKey Microsoft.Crm.CrmException: Assembly can not be loaded. ---> Microsoft.Crm.CrmException: Assembly can not be loaded. at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId) at Microsoft.Crm.ObjectModel.PluginTypeServiceInternal`1.SetIsWorkFlowActivityAttribute(PluginType pluginTypeArg, IBusinessEntity PluginAssembly, SandboxCustomActivityInfo& customActivityInfo, CrmPluginTypeMetadata& typeMetadata, ExecutionContext Context) at Microsoft.Crm.ObjectModel.AssemblyDataCanBeUpdatedValidator.ValidateInternal() at Microsoft.Crm.ObjectModel.PluginValidatorBase.Validate() at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.VerifyRegistrationAbility(IBusinessEntity pluginAssembly, Boolean createCall, ExecutionContext context, CrmPluginAssemblyMetadata assemblyMetadata) at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.ValidateOperation(String operationName, IBusinessEntity entity, ExecutionContext context) at Microsoft.Crm.ObjectModel.SdkEntityServiceBase.UpdateInternal(IBusinessEntity entity, ExecutionContext context, Boolean verifyAction) at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.Update(IBusinessEntity entity, ExecutionContext context) --- End of inner exception stack trace --- at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0.<RunStep>b__0() ApiStepKey a0cdbb1b-ea3e-db11-86a7-000a3a5473e8 ApiDepthKey 1 ApiActivityIdKey dfa4ceec-2fe0-4fdd-80f6-fe28a47f3e71 ApiPluginSolutionNameKey System ApiStepSolutionNameKey System ApiExceptionCategory ClientError ApiExceptionMesageName CustomActivityInvalid ApiExceptionHttpStatusCode 400 http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a8004501d&client=platform Assembly can not be loaded. false dfa4ceec-2fe0-4fdd-80f6-fe28a47f3e71 -2147200995 Assembly can not be loaded. 2024-10-27T10:16:37.5529355Z false
Solution
Go to the project properties and update the assembly version.