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)

System.IO.FileNotFoundException With a Plugin

(0) ShareShare
ReportReport
Posted on by 80

I have written a Plugin in C#. It interacts with a third party web service. I am able to call other search and create methods in the service but there is one call I make that I always get the error message below. I also loose all the trace statements that I have in my code.

Does anyone have any guidance on what to do?

Jason

 

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

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

  <ErrorCode>-2147220970</ErrorCode>

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

  <Message>System.IO.FileNotFoundException&amp;#58; Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support&amp;#58; &amp;#35;D8F9A617</Message>

  <Timestamp>2012-11-30T17:04:25.1489495Z</Timestamp>

  <InnerFault i:nil="true" />

  <TraceText>

 

[ProjectorPlugIn: ProjectorPlugIn.PostProjectorProjectCreate]

[6b95aa4d-dcca-e111-bd60-78e7d162ee7d: PostProjectorProjectCreate]

 

 

</TraceText>

</OrganizationServiceFault>

 

 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Jason,

    I am experiencing a similar problem.  I am using CRM 2013 and developing a plugin using Visual Studio 2012.  I've added assemblies into my plugin file and am able to use the classes in the plugin fine.  When I deploy and trigger the plugin it says that it can't find the file dll file that's referenced in my project.  I have also installed the dll files into GAC using the utility, but it still complains that it can't find the dll throwing a System.IO.FileNotFoundException error.

  • Aileen Gusni Profile Picture
    44,524 on at

    Hi Jason,

    In your plugin code :

    ProjectorPlugIn.PostProjectorProjectCreate

    Do you call any .dll assembly as reference?

    Because it is actually can trigger your plugin as well.

    Anyway there is a tool to merge the assemblies :

    ILMerge.exe

    Please refer to this link :

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

    and this

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

    Hope it helps!

    Thanks.

  • Abhijeet Profile Picture
    680 on at

    Hello All,

    I am also facing same kind of issue but the error which i am facing is as below.

    CRMMySQLConnection.MSCRMMySql.PostLeadCreate: System.BadImageFormatException: Bad binary signature. (Exception from HRESULT: 0x80131192)


    Request you to please help me on this.

    Regards

    Abhijeet

  • Suggested answer
    Hameed Hussain Profile Picture
    250 on at

    This happens when you use a higher assembly version in your code. For example, If you are registering the plugin for 2013, then do not use the sdk assemblies of 2016 (higher version). You have use the sdk assemblies of the CRM version you're working on.

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