Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Unable to update a plugin assembly after V9 Upgrade

Posted on by 196

Hi Experts,

I am trying to update the plugin assembly on one of my Sandbox orgs which was recently upgraded to V9.  I am trying to update the assembly after rebuilding it with the latest version of SDK Core Assemblies installed through Nuget Packages.  I downloaded the latest version of Plugin Registration tool through Nuget.  However, after getting latest version of .NET, SDK, Plugin Registration tool, i am unable to update the assembly and the Plugin Registration tool throws me the error "Plug-in assembly does not contain the required types or assembly content cannot be updated."  I verified that the DLL i am trying to update has all the plugin types which are already present in the CRM org (manually verified through ILDASM.EXE).

I am requesting suggestions and help from you all.

Thanks in advance for the help.

Regards,

Palani K.B.

Categories:
  • Palani Profile Picture
    Palani 196 on at
    RE: Unable to update a plugin assembly after V9 Upgrade

    Hi Judy, thanks for your response.  I did compare the assembly contains the same plugins as those registered in the V9 org.  I am very sure they both have the same plugin classes in them.

  • Palani Profile Picture
    Palani 196 on at
    RE: Unable to update a plugin assembly after V9 Upgrade

    Hi Michel,

    Sorry, I could not try out your suggestion until today.  So, today i tried to update the build and revision numbers of my assembly and tried to update the assembly through Plugin Registration tool, but still got some generic error message which said failed to update the individual plugins in the assembly.  So I still am not able to fix the issue.

    I did compare the assembly contains the same plugins as those registered in the V9 org.

    Another observation i made was i am using a new installation of Visual Studio with .NET Framework Runtime 4.7.2 and if i build and update the assembly from this Visual Studio to an V 8.2 org, it is failing there too with the error message "Plug-in assembly does not contain the required types or assembly content cannot be updated."  The same assembly built in another instance of Visual Studio with .NET Framework Runtime 4.5.2 gets updated without any issues.  Any idea what could cause this?

  • Suggested answer
    Michel van den Brink Profile Picture
    Michel van den Brink 4,697 on at
    RE: Unable to update a plugin assembly after V9 Upgrade

    Hello,

    When updating a plug-in assembly and your newer version contains more or less plugins, it is required that you update at least your build or revision version number (last two numbers). This used to be optional (was always recommended) but is now a requirements.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/register-deploy-plugins#assembly-versioning-and-solutions

      

    Also, when you update your plug-in assembly, make sure you don't update your major or minor version (first two numbers) because that would make Dynamics 365 deploy a second copy of your assembly.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to update a plugin assembly after V9 Upgrade

    Hi,

     

    There could be many reasons for this error message. For example, the Plugin which has been registered previously had a step which has been removed.

     

    If you receive similar error in future, first try to compare the Plug-in steps in Plugin registration tool with the classes in assembly you are trying to register. You need to find out which step needs to be unregistered before you can update the plugin assembly.

     

    Hope it helps.

     

    BR,

    Judy

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans