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)

Updating only one plugin?

(0) ShareShare
ReportReport
Posted on by 56

Hello,

is it possible to update just one plugin not whole assembly?

Problem is in Plugin Registration Tool if i check only one plugin it will unregister rest plugins that's not checked.

Thank you,

Genato

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Samrando Profile Picture
    270 on at

    Do you want to deploy one or more plugins?? Cause i think your description is contradicting your subject. Or maybe I don't understand your question. maybe this might help

    msdn.microsoft.com/.../gg309620.aspx

  • Thomas David Dayman Profile Picture
    11,323 on at

    If you just highlight the assembly and press update. Then load your assembly and then highlight the check all the boxes. If you have just updated one plugin it will only pickup those changes and leave any plugins which haven't been changed.

    You can also download XRMToolBox and download the Plugin Auto Deployer

    • Plugin Auto Deployer - Automatically updates plugin registrations when assemblies are recompiled during development

    So when ever you rebuild your code in Visual Studio it will auto deploy that plugin automatically.

    http://cinteros.xrmtoolbox.com/

  • Genato Profile Picture
    56 on at

    Ok, that's default behavior of Plugin Registration Tool, but it's not what i asked.

    Problem is that i have plugins that are not finished (we are changing some logic in that plugin and while we are waiting client response i finished other plugin). So how can i Update only that finished plugin?

    Plugins(Finished and Unfinished) that are we talking about are in the same assembly.

  • Suggested answer
    Samrando Profile Picture
    270 on at
  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    It is not possible to just update a single plugin in an assembly in Plugin Registration Tool. You could try creating a separate assembly for the finished plugin and unregister that plugin from the old assembly.

    See: community.dynamics.com/...240371

    Hope this helps.

  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    make private the unfinished plugins, they should not appear in the PRT list

  • Genato Profile Picture
    56 on at

    If i got it right this thing works only on new plugins that are not already registered. But my problem is that unfinished plugins are already deployed and at the moment their logic is changed(not finished). In this case i got exception.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Plug-in assembly does not contain the required types or assembly content cannot be updated.
    Detail: <OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
      <ErrorCode>-2147204725</ErrorCode>
      <ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
      <Message>Plug-in assembly does not contain the required types or assembly content cannot be updated.</Message>
      <Timestamp>2017-07-14T09:16:11.2099684Z</Timestamp>
      <InnerFault>
        <ErrorCode>-2147204725</ErrorCode>
        <ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
        <Message>Plug-in assembly does not contain the required types or assembly content cannot be updated.</Message>
        <Timestamp>2017-07-14T09:16:11.2099684Z</Timestamp>
        <InnerFault i:nil="true" />
        <TraceText i:nil="true" />
      </InnerFault>
      <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 Microsoft.Crm.Tools.Libraries.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)
       at Microsoft.Crm.Tools.AssemblyRegistration.PluginRegistrationViewModel.btnregisterClick()

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    When you change a class name inside the plugin assembly and try to update the plug-in assembly using Plug-in registration, it can result in this error.

    See: rajeevpentyala.com/.../plug-in-assembly-does-not-contain-the-required-types-or-assembly-content-cannot-be-updated-crm-2011

  • Suggested answer
    ashlega Profile Picture
    34,477 on at

    I would split your assembly into multiple assemblies. Each assembly can have many plugins. You'll have to re-register pretty much everything, but you'll solve this problem once and for all - there seem to be too much functionality in your single assembly right now.

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