Ben Walker
  • Blog
  • Blog

System.IO.FileLoadException and other errors in plugins deployed by CRM developer toolkit to Dynamics CRM 2015

12/9/2017

0 Comments

 
On creating a new plugins project for our Dynamics 2015 organisation with the latest version of the Dynamics 365 Developer Toolkit we were experiencing all sorts of errors, either on deployment or on execution.
On trying to register a plugin with IsolationMode=”None” we would experience this error:
System.IO.FileLoadException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #156BBD18
Registering plugins in Sandbox isolation mode would work, but the plugins would fail on execution with this error:
SandboxAppDomainHelper.Execute: The plug-in type could not be found in the plug-in assembly
and
System.ArgumentNullException: Value cannot be null.
Trying to delete or re-register the step would give us this error:
Unable to load the plugin type
The issue turned out to be that, by default, the toolkit downloads the latest version (8.0.2.1) of the Microsoft.CrmSdk.CoreAssemblies package from NuGet, and this is a higher version than can be used by Dynamics CRM 2015. In order to fix this issue, we just downgraded the package using the NuGet Package Manager:
Picture
This fixes the problem and plugins will now work in either Sandbox or ‘None’ isolation mode.
0 Comments



Leave a Reply.

    Archives

    July 2021
    June 2021
    May 2020
    March 2020
    December 2019
    October 2019
    June 2018
    February 2018
    October 2017
    September 2017
    August 2017
    May 2017
    April 2017

    Categories

    All
    Dynamics 365
    Dynamics CRM
    FakeXrmEasy
    LINQPad
    Testing

    RSS Feed

    Author

    Some stuff about me!

Proudly powered by Weebly