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)

“Plug-in assembly fullnames must be unique” on updating plugin registration

(0) ShareShare
ReportReport
Posted on by 1,250

Dynamics CRM 2011 on premise.

I registered a custom workflow assembly using the Plugin Registration Tool.

The plugin code was:

using System.Text; using System.Threading.Tasks; using System.Activities; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Workflow; namespace CreateDirectDebit { public class CreateDirectDebit : CodeActivity { protected override void Execute(CodeActivityContext context) { } } } 

This was successful.

Then I change the code to this:

using System.Text; using System.Threading.Tasks; using System.Activities; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Workflow; namespace CreateDirectDebit { public class CreateDirectDebit : CodeActivity { protected override void Execute(CodeActivityContext context) { // Create the tracing service ITracingService tracingService = context.GetExtension<ITracingService>(); if (tracingService == null) throw new InvalidPluginExecutionException("Failed to retrieve the tracing service."); tracingService.Trace("CreateDirectDebit.Execute, 1"); throw new InvalidPluginExecutionException("Testing dialog custom workflow."); } } } 

When I update the assembly using the Plugin Registration Tool I get this error on pressing Update Selected Plugins:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Plug-in assembly fullnames must be unique (ignoring the version build and revision number). Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <ErrorCode>-2147204741</ErrorCode> <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> <Message>Plug-in assembly fullnames must be unique (ignoring the version build and revision number).</Message> <Timestamp>2013-10-14T10:04:55.4528719Z</Timestamp> <InnerFault> <ErrorCode>-2147204741</ErrorCode> <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> <Message>Plug-in assembly fullnames must be unique (ignoring the version build and revision number).</Message> <Timestamp>2013-10-14T10:04:55.4528719Z</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 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Xrm.Sdk.IOrganizationService.Update(Entity entity) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.UpdateCore(Entity entity) at Microsoft.Crm.Tools.PluginRegistration.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type) at Microsoft.Crm.Tools.PluginRegistration.PluginRegistrationForm.btnRegister_Click(Object sender, EventArgs e) 

What have I done wrong?

*This post is locked for comments

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

    In Dynamics CRM 2011 plugin and workflow assemblies can be updated as long as name, public key, major version and minor version of existing and new assemblies are the same. If the minor version of your assembly has been incremented (your VS build may have done this automatically), then both are considered to be different.

    They can however be registered side-by-side. Just register the new version and remove the old one.

    May Be You Create New Assembly as Same name. So, Just Update that one assembly..

    May be it helps U.

  • Dhaval Profile Picture
    10 on at

    ya this solved my problem..... i got the same error and found out that by mistake i was registering a new assembly instead of updating it....

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