Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Registering assemblies referenced by plugin

Posted on by 1,720

Hi

My plugin references an external assembly. I have deployed the plugin to the database and registered the referenced assembly with GAC but my plugin still gives the error that could not load the file externalassembly.dll. Any ideas?

Thanks

*This post is locked for comments

  • Royal King Profile Picture
    Royal King 27,686 on at
    RE: Registering assemblies referenced by plugin

    It looks like Security error based on the error message.

    Execute: CrmException: RSPCA.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=150bc8971fa94812; 80040216; System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80

    [2014-11-10 16:40:48.444] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   40 |Category: Platform |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | MessageProcessor.Execute  ilOffset = 0x1FB

    >MessageProcessor fail to process message 'Create' for 'rsp_receipt'.

  • Mir Hassan Ali Profile Picture
    Mir Hassan Ali 1,720 on at
    RE: Registering assemblies referenced by plugin

    After copying the file to both GAC and server/bin folder I don't get the could not load file error. But I get another exception when my code tries to create an instance of a class from that referenced assembly. I enabled tracing and this is what I get. Could this be something to do with the user permissions.

    # CRM Tracing Version 2.0

    # LocalTime: 2014-11-10 16:40:48.386

    # Categories:

    # CallStackOn: No

    # ComputerName: CRM-DEV1-HO

    # CRMVersion: 6.1.0000.0581

    # DeploymentType: OnPremise

    # ScaleGroup:

    # ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools, VssWriter, EmailConnector

    [2014-11-10 16:40:48.386] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   40 |Category: Exception |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | CrmException..ctor  ilOffset = 0x7

    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7

    at CrmException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x5

    at ExceptionConverter.TryConvertToCrmExceptionInternal(Exception exception, CrmException& crmException)  ilOffset = 0x81

    at ExceptionConverter.TryConvertToCrmException(Exception exception, CrmException& crmException)  ilOffset = 0xAE

    at SandboxCodeUnit.Execute(IExecutionContext context)  ilOffset = 0x167

    at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x2A3

    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1FB

    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4

    at ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)  ilOffset = 0x0

    at ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)  ilOffset = 0xB4

    at BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)  ilOffset = 0x54

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xCF

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

    at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0x57

    at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x200

    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5

    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4

    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x16E

    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode)  ilOffset = 0x1F1

    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)  ilOffset = 0x2D

    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)  ilOffset = 0x26

    at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x34

    at SandboxSdkListener.Execute(SandboxCallInfo callInfo, SandboxSdkContext requestContext, String operation, Byte[] serializedRequest)  ilOffset = 0xAC

    at   ilOffset = 0xFFFFFFFF

    at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)  ilOffset = 0x241

    at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)  ilOffset = 0x100

    at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)  ilOffset = 0x48

    at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)  ilOffset = 0xC6

    at MessageRpc.Process(Boolean isOperationContextSet)  ilOffset = 0x62

    at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)  ilOffset = 0x256

    at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)  ilOffset = 0xF1

    at ChannelHandler.AsyncMessagePump(IAsyncResult result)  ilOffset = 0x39

    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0

    at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2

    at TryReceiveAsyncResult.OnReceive(IAsyncResult result)  ilOffset = 0x4B

    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0

    at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2

    at ReceiveAsyncResult.OnReceiveComplete(Object state)  ilOffset = 0x2E

    at SessionConnectionReader.OnAsyncReadComplete(Object state)  ilOffset = 0xBF

    at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)  ilOffset = 0x0

    at LazyAsyncResult.Complete(IntPtr userToken)  ilOffset = 0x3E

    at NegotiateStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)  ilOffset = 0x70

    at NegotiateStream.ReadCallback(AsyncProtocolRequest asyncRequest)  ilOffset = 0x68

    at FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)  ilOffset = 0x5D

    at FixedSizeReader.ReadCallback(IAsyncResult transportResult)  ilOffset = 0x29

    at AsyncResult.Complete(Boolean completedSynchronously)  ilOffset = 0xC2

    at IOAsyncResult.OnAsyncIOComplete(Object state)  ilOffset = 0x29

    at SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)  ilOffset = 0x58

    at SocketAsyncEventArgs.FinishOperationSuccess(SocketError socketError, Int32 bytesTransferred, SocketFlags flags)  ilOffset = 0x5CB

    at SocketAsyncEventArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)  ilOffset = 0x10

    at _IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)  ilOffset = 0x3C

    >Crm Exception: Message: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80, ErrorCode: -2147220970

    [2014-11-10 16:40:48.442] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   40 |Category: Sandbox |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | SandboxCodeUnit.Execute  ilOffset = 0x167

    >Execute: CrmException: RSPCA.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=150bc8971fa94812; 80040216; System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80

    [2014-11-10 16:40:48.444] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   40 |Category: Platform |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | MessageProcessor.Execute  ilOffset = 0x1FB

    >MessageProcessor fail to process message 'Create' for 'rsp_receipt'.

    [2014-11-10 16:40:48.452] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   40 |Category: Platform |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | MessageProcessor.Execute  ilOffset = 0x1C5

    >MessageProcessor fail to process message 'Create' for 'rsp_receipt'.

    [2014-11-10 16:40:48.454] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   40 |Category: Sandbox |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | SandboxSdkListener.Execute  ilOffset = 0xAC

    >SandboxSdkListener.Execute: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80 (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).

    [2014-11-10 16:40:48.457] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   40 |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: ce4df567-aa58-4b89-964d-99c9d0836a33 | ServiceModelTraceRedirector.TraceData  ilOffset = 0x45

    >msdn.microsoft.com/.../System.ServiceModel.Diagnostics.TraceHandledException.aspxHandling an exception. Exception details: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80 (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault)./LM/W3SVC/2/ROOT-1-130600696429711243System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]], System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80   at Microsoft.Crm.Sandbox.SandboxSdkListener.Execute(SandboxCallInfo callInfo, SandboxSdkContext requestContext, String operation, Byte[] serializedRequest)

    >   at SyncInvokeExecute(Object , Object[] , Object[] )

    >   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

    >   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

    >   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

    >   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)

    >   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80 (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault).

    [2014-11-10 16:40:48.703] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   23 |Category: Exception |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: 71828423-25c4-4e53-8dc4-3bfa2bd137cc | CrmException..ctor  ilOffset = 0x7

    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7

    at CrmException..ctor(String message, Exception innerException, Int32 errorCode)  ilOffset = 0x5

    at ExceptionConverter.TryConvertToCrmExceptionInternal(Exception exception, CrmException& crmException)  ilOffset = 0x81

    at ExceptionConverter.TryConvertToCrmException(Exception exception, CrmException& crmException)  ilOffset = 0xAE

    at SandboxCodeUnit.Execute(IExecutionContext context)  ilOffset = 0x167

    at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x2A3

    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1FB

    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4

    at ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)  ilOffset = 0x0

    at ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)  ilOffset = 0xB4

    at BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context)  ilOffset = 0x54

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xCF

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

    at InternalOperationPlugin.Execute(IServiceProvider serviceProvider)  ilOffset = 0x57

    at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)  ilOffset = 0x200

    at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at Pipeline.Execute(PipelineExecutionContext context)  ilOffset = 0x65

    at MessageProcessor.Execute(PipelineExecutionContext context)  ilOffset = 0x1C5

    at InternalMessageDispatcher.Execute(PipelineExecutionContext context)  ilOffset = 0xE4

    at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)  ilOffset = 0x16E

    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode)  ilOffset = 0x1F1

    at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)  ilOffset = 0x2D

    at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)  ilOffset = 0x26

    at InprocessServiceProxy.ExecuteCore(OrganizationRequest request)  ilOffset = 0x34

    at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xF6

    at CreateCommand.Execute()  ilOffset = 0xC

    at EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)  ilOffset = 0x0

    at EntityProxy.Create(Boolean performDuplicateCheck)  ilOffset = 0x7

    at EntityProxy.CreateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck)  ilOffset = 0x0

    at CommandBase.UpdateEntity(Entity entity, Boolean retrieve)  ilOffset = 0xAC

    at SaveCommand.ExecuteCommand(String commandXml)  ilOffset = 0x116

    at CommandBase.Execute(String commandXml)  ilOffset = 0x13

    at InlineEditWebService.Execute(Int32 command, String commandXml)  ilOffset = 0xD0

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xCF

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

    at WebServiceHandler.Invoke()  ilOffset = 0xC3

    at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x13E

    at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x39

    at HandlerWrapper.ProcessRequest(HttpContext context)  ilOffset = 0x7

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A

    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A

    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    >Crm Exception: Message: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80, ErrorCode: -2147220970

    [2014-11-10 16:40:48.721] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   23 |Category: Sandbox |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: 71828423-25c4-4e53-8dc4-3bfa2bd137cc | SandboxCodeUnit.Execute  ilOffset = 0x167

    >Execute: CrmException: RSPCA.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=150bc8971fa94812; 80040216; System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80

    [2014-11-10 16:40:48.724] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   23 |Category: Platform |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: 71828423-25c4-4e53-8dc4-3bfa2bd137cc | MessageProcessor.Execute  ilOffset = 0x1FB

    >MessageProcessor fail to process message 'Create' for 'rsp_payments'.

    [2014-11-10 16:40:48.729] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   23 |Category: Platform |User: aa424b9f-8a48-4ad0-a579-a818490dd471 |Level: Error |ReqId: 71828423-25c4-4e53-8dc4-3bfa2bd137cc | MessageProcessor.Execute  ilOffset = 0x1C5

    >MessageProcessor fail to process message 'Create' for 'rsp_payments'.

    [2014-11-10 16:40:48.733] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   23 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 71828423-25c4-4e53-8dc4-3bfa2bd137cc | CrmException..ctor  ilOffset = 0x7

    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7

    at CrmException..ctor(String message, Int32 errorCode)  ilOffset = 0x5

    at PlatformCommand.CreateCrmExceptionFromServiceFault(FaultException`1 fe)  ilOffset = 0x1B

    at PlatformCommand.XrmExecuteInternal()  ilOffset = 0xF6

    at CreateCommand.Execute()  ilOffset = 0xC

    at EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)  ilOffset = 0x0

    at EntityProxy.Create(Boolean performDuplicateCheck)  ilOffset = 0x7

    at EntityProxy.CreateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck)  ilOffset = 0x0

    at CommandBase.UpdateEntity(Entity entity, Boolean retrieve)  ilOffset = 0xAC

    at SaveCommand.ExecuteCommand(String commandXml)  ilOffset = 0x116

    at CommandBase.Execute(String commandXml)  ilOffset = 0x13

    at InlineEditWebService.Execute(Int32 command, String commandXml)  ilOffset = 0xD0

    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)  ilOffset = 0xFFFFFFFF

    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)  ilOffset = 0x25

    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)  ilOffset = 0xCF

    at LogicalMethodInfo.Invoke(Object target, Object[] values)  ilOffset = 0x4F

    at WebServiceHandler.Invoke()  ilOffset = 0xC3

    at WebServiceHandler.CoreProcessRequest()  ilOffset = 0x13E

    at SyncSessionlessHandler.ProcessRequest(HttpContext context)  ilOffset = 0x39

    at HandlerWrapper.ProcessRequest(HttpContext context)  ilOffset = 0x7

    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D

    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15

    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A

    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C

    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A

    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B

    >Crm Exception: Message: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80, ErrorCode: -2147220970

    [2014-11-10 16:40:48.736] Process: w3wp |Organization:2c3a77f9-74aa-e311-80ba-0050568bc8bf |Thread:   23 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 71828423-25c4-4e53-8dc4-3bfa2bd137cc | ErrorInformation.LogError  ilOffset = 0x17

    >MSCRM Error Report:

    --------------------------------------------------------------------------------------------------------

    Error: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80

    Error Number: 0x80040216

    Error Message: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80

    Error Details: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80

    Source File: Not available

    Line Number: Not available

    Request URL:

    Stack Trace Info: [CrmException: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CEC38D80]

      at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()

      at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute()

      at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId)

      at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck)

      at Microsoft.Crm.Application.Platform.EntityProxy.CreateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck)

      at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.UpdateEntity(Entity entity, Boolean retrieve)

      at Microsoft.Crm.Core.Application.WebServices.InlineEdit.SaveCommand.ExecuteCommand(String commandXml)

      at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml)

  • Suggested answer
    Royal King Profile Picture
    Royal King 27,686 on at
    RE: Registering assemblies referenced by plugin

    I would suggest merging all external assembliens with your plugin assembly Using ILMerge Tool  and registering it. This way you dont have to copy any dll to GAC or bin folder

    You can find more information on ILMerge  here

    crmdm.blogspot.com/.../crm-cannot-find-plugin-assembly-or-one.html

    blogs.msdn.com/.../how-to-reference-assemblies-from-plug-ins.aspx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Registering assemblies referenced by plugin

    Hi Ali,

    Were you able to resolve the issue ?  if not, did you try debugging the plug-in?

    Harihar

  • Mir Hassan Ali Profile Picture
    Mir Hassan Ali 1,720 on at
    RE: Registering assemblies referenced by plugin

    Its a single server and I have also tried copying it to the C:\Program Files\Microsoft Dynamics CRM\Server\bin folder but no use.

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans