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)

Use previous plugin version source code for upgraded CRM

(0) ShareShare
ReportReport
Posted on by

Hi

We have dynamics crm 2011, and custom plugins developed using Visual Studio 2013. We want to upgraded the CRM step-by-step to version 2016, using import organization. But there is a question regarding changing plugins source code and updating plugin assemblies to import in ver 2016.

Is it possible to create a new plugin project in visual studio (ver 2015), with same project name as previous version, add the C# source code to project, and use the old project "Key" in this new project, build it against CRM 2016 sdk, and  then update the plugin? 

Thanks

*This post is locked for comments

I have the same question (0)
  • ScottDurow Profile Picture
    21 on at

    If you want to update the plugins you will need the original source because it is signed with the secret key.

    The only way to get this is by having the original sourcecode with the key - otherwise you'll need to delete the plugin and recreate it with a new signature.

    Thanks,

    Scott

  • Community Member Profile Picture
    on at

    I have original source code and the key, so there would not be any problem ?

  • Suggested answer
    Leonardo Mizikami Profile Picture
    152 on at

    Hello babak.

    If the plug-in was created using the CRM 2011 SDK with only supported methods there is no update in the source code to do. CRM will automatically use the new version of CRM library.

    If you really need to rebuild the library, just make a copy of the entire solution (just to have a backup) and change the references to the new SDK.

  • Community Member Profile Picture
    on at

    Hi Leonardo

    there were three visual studio projects for CRM plugin and workflow customization. Two of them were plugin and one was workflow.

    By creating new project and copying source files and key file I could easily update the assembly in CRM 2016, but for one plugin project I get " Plug-in assembly does not contain the required types or assembly content cannot be updated." Error.

  • Leonardo Mizikami Profile Picture
    152 on at

    Can you publish the full error message here?

  • Community Member Profile Picture
    on at

    Here is the full error message :

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.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-01-27T11:15:39.5579907Z</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-01-27T11:15:39.5579907Z</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()


  • Verified answer
    Leonardo Mizikami Profile Picture
    152 on at

    Make sure the class name is unchanged.

    Please, refer to:

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

  • Community Member Profile Picture
    on at

    Hi Babak! I know a plugin that can help log calls automatically in MS Dynamics. That app is Tenfold, a CTI and sales acceleration platform that offers features like call logging and call monitoring. You can check out Tenfold page if you'd like to know more. www.tenfold.com/.../dynamics

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