Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Error Plugin RetrieveMultiple after upgrade to 8.2 OnPremise

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,

  • Suggested answer
    Rui Carvalho Profile Picture
    Rui Carvalho on at
    RE: Error Plugin RetrieveMultiple after upgrade to 8.2 OnPremise

    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

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