web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to solve System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] in MS Dynamics 365?

(0) ShareShare
ReportReport
Posted on by

Hi,

I am getting following error. With package, I have few plugins. It looks like Plugin Assembly doesn't execute correctly.

Can anybody please suggest me based on the trace?

Error Trace:

CRM Tracing Version 2.0
CRMVersion: 8.1.0.359

Process:Microsoft.Crm.Sandbox.HostService |Organization:00000000-0000-0000-0000-000000000000 |Thread:  161 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxAssemblyManager.CheckAssembly  ilOffset = 0xD8

                at SandboxAssemblyManager.CheckAssembly(Guid pluginAssemblyId, Int32 pluginAssemblyHashCode, String pluginAssemblyContents, Guid organizationId)  ilOffset = 0xD8

                at SandboxHost.ValidateInputs(SandboxCallInfo callInfo, IExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String assemblyContents, SandboxTracker tracker)  ilOffset = 0xD3

                at SandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)  ilOffset = 0x2C

                at   ilOffset = 0xFFFFFFFF

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

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

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

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

                at Wrapper.Resume(Boolean& alreadyResumedNoLock)  ilOffset = 0x1B

                at ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)  ilOffset = 0x8

                at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79

                at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9

                at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35

                at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4

>Crm Exception: Message: Assembly should be provided, ErrorCode: -2147204719

Process:Microsoft.Crm.Sandbox.HostService |Organization:00000000-0000-0000-0000-000000000000 |Thread:  212 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxAssemblyManager.CheckAssembly  ilOffset = 0xD8

                at SandboxAssemblyManager.CheckAssembly(Guid pluginAssemblyId, Int32 pluginAssemblyHashCode, String pluginAssemblyContents, Guid organizationId)  ilOffset = 0xD8

                at SandboxHost.ValidateInputs(SandboxCallInfo callInfo, IExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String assemblyContents, SandboxTracker tracker)  ilOffset = 0xD3

                at SandboxHost.ExecuteCustomWorkflowActivityAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxCustomActivityExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String assemblyContents, Boolean returnTraceInfo)  ilOffset = 0x24

                at   ilOffset = 0xFFFFFFFF

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

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

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

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

                at Wrapper.Resume(Boolean& alreadyResumedNoLock)  ilOffset = 0x1B

                at ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)  ilOffset = 0x8

                at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79

                at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9

                at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35

                at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4

>Crm Exception: Message: Assembly should be provided, ErrorCode: -2147204719

 Process:Microsoft.Crm.Sandbox.HostService |Organization:00000000-0000-0000-0000-000000000000 |Thread:  156 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxAssemblyManager.CheckAssembly  ilOffset = 0xD8

                at SandboxAssemblyManager.CheckAssembly(Guid pluginAssemblyId, Int32 pluginAssemblyHashCode, String pluginAssemblyContents, Guid organizationId)  ilOffset = 0xD8

                at SandboxHost.ValidateInputs(SandboxCallInfo callInfo, IExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String assemblyContents, SandboxTracker tracker)  ilOffset = 0xD3

                at SandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)  ilOffset = 0x2C

                at   ilOffset = 0xFFFFFFFF

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

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

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

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

                at Wrapper.Resume(Boolean& alreadyResumedNoLock)  ilOffset = 0x1B

                at ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)  ilOffset = 0x8

                at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x79

                at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  ilOffset = 0x9

                at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  ilOffset = 0x35

                at ThreadPoolWorkQueue.Dispatch()  ilOffset = 0xA4

>Crm Exception: Message: Assembly should be provided, ErrorCode: -2147204719

 Process:Microsoft.Crm.Sandbox.HostService |Organization:893899dr-4435-f32f-4tdr-jdkcm809jdmc |Thread:   92 |Category: Sandbox |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxWorkerProcess.Execute  ilOffset = 0x2DE

>Fault exception - proxy OK

[2018-10-11 06:02:27.072] Process:Microsoft.Crm.Sandbox.HostService |Organization:893899dr-4435-f32f-4tdr-jdkcm809jdmc |Thread:   92 |Category: Sandbox |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxWorkerProcess.Execute  ilOffset = 0x2DE

>TrackingId: a5dcb45d-b180-4198-a7d0-4e3bf713348c, Depth: 1, Message: SandboxWorkerProcess.Execute: Execute failed for worker process: {9df31244-0b91-4da7-9d04-e256d0f87455}:7296, client id: F29883FF, for org: 893899dr-4435-f32f-4tdr-jdkcm809jdmc, with exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] with ErrorCode: -2147220891, Call Info Hierarchy: MNLAAPP01; Microsoft.Crm.Sandbox.HostService.exe (1224); C7B9554F; execution time:00:00:20.7407205; AddLatLongForNew, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cba8fe99a0521c07:Microsoft.Crm.Sdk.Samples.AddLatLongForNew <- MNLAAPP01; w3wp.exe (7816); 3AE85329; execution time:00:00:20.7447200

[2018-10-11 06:02:45.716] Process:Microsoft.Crm.Sandbox.HostService |Organization:893899dr-4435-f32f-4tdr-jdkcm809jdmc |Thread:  194 |Category: Sandbox |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxWorkerProcess.Execute  ilOffset = 0x2DE

>Fault exception - proxy OK

[2018-10-11 06:02:45.717] Process:Microsoft.Crm.Sandbox.HostService |Organization:893899dr-4435-f32f-4tdr-jdkcm809jdmc |Thread:  194 |Category: Sandbox |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | SandboxWorkerProcess.Execute  ilOffset = 0x2DE

>TrackingId: 7bdd6cd8-116b-4130-a5a6-ad047f658348, Depth: 1, Message: SandboxWorkerProcess.Execute: Execute failed for worker process: {9df31244-0b91-4da7-9d04-e256d0f87455}:7296, client id: F29883FF, for org: 893899dr-4435-f32f-4tdr-jdkcm809jdmc, with exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault] with ErrorCode: -2147220891, Call Info Hierarchy: MNLAAPP01; Microsoft.Crm.Sandbox.HostService.exe (1224); 29637AF4; execution time:00:00:00.0630085; AddLatLongForNew, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cba8fe99a0521c07:Microsoft.Crm.Sdk.Samples.AddLatLongForNew <- MNLAAPP01; w3wp.exe (7816); 1C305066; execution time:00:00:00.0670088

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    crm development Profile Picture
    870 on at

    Hi,

    Have you tried to unregister the plug-in assembly completely from CRM and Re-build the plug-in solution before deploy.

    You may need to create new signing key if it doesn't work.

    Thanks,

    Anand

  • Community Member Profile Picture
    on at

    Hi Anand

    It is working fine with other account which is CRM Online 365. So, I don't think it should be any issue of build. As far as sign in key concern, it has sign in key.

    Based on Error code, it suggest that "UnableToLoadPluginAssembly", reference: docs.microsoft.com/.../gg328182(v=crm.8).

    Please suggest

  • crm development Profile Picture
    870 on at

    Okay. Correct me if my understanding is wrong. You are trying to deploy plug-in solution on On-premise version of CRM 365 and same plug-in solution is working fine with CRM Online 365.

    Is your code running in Sandbox mode? Just for testing try to keep plugin.dll in folder C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly

  • Community Member Profile Picture
    on at

    Hi Anand

    CRMVersion: 8.1.0.359

    I have given this to one of my customer. They use On Premise system. It is not working in their system. However, when I check by installing in my On Premise system(v8.2) as well as in my Online 365 v9.0, it works like a charm. But it is not working in my customer's system who is using On Premise v8.1.0.359.

    Please let me if you need more info.

  • crm development Profile Picture
    870 on at

    Hi Chhaya, it may be Sandbox issue as per 'Message: SandboxWorkerProcess.Execute: Execute failed for worker process: '.

    Would you give a try mentioned in link below.

    joshimandarblog.wordpress.com/.../crm-2015-plug-in-execution-failed-because-no-sandbox-worker-processes-are-currently-available

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans