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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error Plugin RetrieveMultiple after upgrade to 8.2 OnPremise

(0) ShareShare
ReportReport
Posted on by 170

We have recently upgrade an old Dynamics CRM 8.1 version to 8.2 but we are getting the following error, for example, on a custom plugin executed on contact entity and on Pre-RetrieveMultiple Message: 

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.IO.DirectoryNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5B82D8A9Detail:

<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">

  <ActivityId>c9219836-a5b2-4b18-8778-2d9bcfab44a1</ActivityId>

  <ErrorCode>-2147220970</ErrorCode>

  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />

  <Message>System.IO.DirectoryNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5B82D8A9</Message>

  <Timestamp>2021-05-17T16:10:40.7616072Z</Timestamp>

  <ExceptionRetriable>true</ExceptionRetriable>

  <ExceptionSource>PluginExecution</ExceptionSource>

  <InnerFault i:nil="true" />

  <OriginalException>System.IO.DirectoryNotFoundException

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

   at Microsoft.Crm.Sandbox.SandboxAppDomain.LoadPluginAssembly(Guid pluginAssemblyId, Int32 pluginAssemblyHashCode, String assemblyName, Guid trackingId, Int32 depth, Boolean useDrawbridgeEnabled)

   at Microsoft.Crm.Sandbox.SandboxWorker.ValidateAndGetAppDomainHelper(SandboxCallInfo callInfo, SandboxExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, String pluginTypeName, SandboxTracker tracker, SandboxRequestCounter&amp; workerCounter)

   at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter&amp; workerCounter, Boolean returnTraceInfo)</OriginalException>

  <TraceText i:nil="true" />

</OrganizationServiceFault>

 

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 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

   at Microsoft.Crm.Sandbox.ISandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)

   at Microsoft.Crm.Sandbox.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)

   at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)

It's seems that there is an error loading the assembly but I cannot figure out what do we need to change or configure to make it work again. 

Thanks in advance for you help ! 

Best Regards,

I have the same question (0)
  • Suggested answer
    Rui Carvalho Profile Picture
    Microsoft Employee on at

    Hi Hubert,

    Could you please paste a screenshot from Plugin Registration Tool for that plugin and step?

    Also if you try to register another plugin (a test plugin) with the same step do you also have the same error when it is called?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 88

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans