Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Assembly is not getting registered using plugin registration tools

Posted on by Microsoft Employee

Below is the error while registering the plugin:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: This plugin assembly uses version ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=99793edd183ae20f of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.6.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.6.2 and try again.
Detail: <OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
<ActivityId>ea3290e7-23f9-4e9f-805f-bfadda9a15ee</ActivityId>
<ErrorCode>-2147204725</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<a:key>ApiExceptionSourceKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">Plugin/Microsoft.Crm.ObjectModel.PluginAssemblyService</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiOriginalExceptionKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">Microsoft.Crm.CrmException: This plugin assembly uses version ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=99793edd183ae20f of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.6.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.6.2 and try again. ---&gt; Microsoft.Crm.CrmException: This plugin assembly uses version ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=99793edd183ae20f of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.6.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.6.2 and try again.
at Microsoft.Crm.ObjectModel.TargetFrameworkVersionValidator.ValidateInternal()
at Microsoft.Crm.ObjectModel.PluginValidatorBase.Validate()
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.ValidateAssemblyMetadata(ExecutionContext context, IBusinessEntity pluginAssembly, CrmPluginAssemblyMetadata assemblyMetadata)
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.VerifyRegistrationAbility(IBusinessEntity pluginAssembly, Boolean createCall, ExecutionContext context, CrmPluginAssemblyMetadata assemblyMetadata)
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.ValidateOperation(String operationName, IBusinessEntity entity, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SdkEntityServiceBase.CreateInternal(IBusinessEntity entity, ExecutionContext context, Boolean verifyAction)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass1_1.&lt;Execute&gt;b__0()</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiStepKey</a:key>
<a:value i:type="b:guid" xmlns:b="schemas.microsoft.com/.../Serialization">3ecabb1b-ea3e-db11-86a7-000a3a5473e8</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiDepthKey</a:key>
<a:value i:type="b:int" xmlns:b="www.w3.org/.../XMLSchema">1</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiActivityIdKey</a:key>
<a:value i:type="b:guid" xmlns:b="schemas.microsoft.com/.../Serialization">ea3290e7-23f9-4e9f-805f-bfadda9a15ee</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiPluginSolutionNameKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">System</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiStepSolutionNameKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">System</a:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>This plugin assembly uses version ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=99793edd183ae20f of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.6.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.6.2 and try again.</Message>
<Timestamp>2018-05-09T05:19:06.8830048Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>ea3290e7-23f9-4e9f-805f-bfadda9a15ee</ActivityId>
<ErrorCode>-2147204725</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>This plugin assembly uses version ClassLibrary1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=99793edd183ae20f of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.6.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.6.2 and try again.</Message>
<Timestamp>2018-05-09T05:19:06.8830048Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<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.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly)
at Microsoft.Crm.Tools.AssemblyRegistration.PluginRegistrationViewModel.btnregisterClick()

*This post is locked for comments

  • Heta77 Profile Picture
    Heta77 35 on at
    RE: Assembly is not getting registered using plugin registration tools

    Microsoft.CrmSdk.CoreAssemblies version 9.0.2.5 working with .NET Framework 4.5.2. Newer versions CoreAssemblies need .NET Framework 4.6.2! I used version 9.0.2.5 (www.nuget.org/.../9.0.2.5) for creating assembly with Framework 4.5.2.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Assembly is not getting registered using plugin registration tools

    Changing to.Net 4.5.2, it works.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Assembly is not getting registered using plugin registration tools

    thanks

  • Sai Krishna N Profile Picture
    Sai Krishna N 15 on at
    RE: Assembly is not getting registered using plugin registration tools

    Rebuild your plugin project in .Net framework 4.5.2 and register. This worked for me.

  • Suggested answer
    DEVENDRA V Profile Picture
    DEVENDRA V 45 on at
    RE: Assembly is not getting registered using plugin registration tools

    Switching back to 4.5.2 worked for me.

  • Verified answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Assembly is not getting registered using plugin registration tools

    Try Aric Levin's suggestion.

    As weird as it may seem, flip the assembly to 4.5.2 and try.

    Seems to work for some other forum users facing the same issue.

    cheers!

  • DEVENDRA V Profile Picture
    DEVENDRA V 45 on at
    RE: Assembly is not getting registered using plugin registration tools

    Getting same error since morning today, while registering assemblies with .Net Framework 4.6.2.

    Till last week we were able to register using .Net Framework 4.6.2 and they were working as expected.

    Changed Framework to 4.5.2 and able to register now, having SDK assemblies 9.0.0.0 from NuGet.

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Assembly is not getting registered using plugin registration tools

    Hi ,

    Could you please post here the screenshot .Net framework version you are building your solution.

    In addition error says  "Dynamics 365 requires version 4.6.2 of the .NET Framework for plugin assemblies" , so which version of .Net framework you are using .

    Try to upgrade .NET framework version and also try with both 4.5.2 and 4.6.2.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Assembly is not getting registered using plugin registration tools

    Hi,

    If you are using 4.6.2, can you switch back to 4.5.2 and see if that is working for you.

    I noticed that some recent updates caused this issue to happen.

    Also, what version of CRM 2016 are you on?

  • EnriqueMdz Profile Picture
    EnriqueMdz 1,065 on at
    RE: Assembly is not getting registered using plugin registration tools

    Hi, hope you're doing good.

    Make sure you're compiling the assembly using the 4.6.2 version of the .NET Framework. The error might be related to that .

    Please mark this answer as verified if helpfull.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans