Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Error occurred while registering the assembly

(0) ShareShare
ReportReport
Posted on by 595

i'm using Visual studio 2019 with .Net framework 4.7.2  and Microsoft.CrmSdk.CoreAssemblies.9.0.2.26 for plugin.

while registering plugin through "Plugin registration tool" i'm getting "Error occurred while registering the assembly". and error log says as below..

ERROR LOG:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.

Detail: <OrganizationServiceFault xmlns="">schemas.microsoft.com/.../Contracts" xmlns:i="">www.w3.org/.../XMLSchema-instance">

  <ActivityId>69785581-ac5d-4d40-bf1d-cc51c00cb1b7</ActivityId>

  <ErrorCode>-2147220970</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/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiOriginalExceptionKey</a:key>

      <a:value i:type="b:string" xmlns:b="">www.w3.org/.../XMLSchema">Microsoft.Crm.CrmException: An unexpected error occurred. ---&gt; System.FormatException: Input string was not in a correct format.

   at System.Text.StringBuilder.FormatError()

   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)

   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)

   at System.String.Format(IFormatProvider provider, String format, Object arg0, Object arg1)

   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__DisplayClass3_0.&lt;RunStep&gt;b__0()</a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiStepKey</a:key>

      <a:value i:type="b:guid" xmlns:b="">schemas.microsoft.com/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiDepthKey</a:key>

      <a:value i:type="b:int" xmlns:b="">www.w3.org/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiActivityIdKey</a:key>

      <a:value i:type="b:guid" xmlns:b="">schemas.microsoft.com/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiPluginSolutionNameKey</a:key>

      <a:value i:type="b:string" xmlns:b="">www.w3.org/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiStepSolutionNameKey</a:key>

      <a:value i:type="b:string" xmlns:b="">www.w3.org/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiExceptionCategory</a:key>

      <a:value i:type="b:string" xmlns:b="">www.w3.org/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiExceptionMesageName</a:key>

      <a:value i:type="b:string" xmlns:b="">www.w3.org/.../a:value>

    </KeyValuePairOfstringanyType>

    <KeyValuePairOfstringanyType>

      <a:key>ApiExceptionHttpStatusCode</a:key>

      <a:value i:type="b:int" xmlns:b="">www.w3.org/.../a:value>

    </KeyValuePairOfstringanyType>

  </ErrorDetails>

  <HelpLink>go.microsoft.com/.../

  <Message>An unexpected error occurred.</Message>

  <Timestamp>2020-06-18T04:38:18.5980082Z</Timestamp>

  <ExceptionRetriable>false</ExceptionRetriable>

  <ExceptionSource i:nil="true" />

  <InnerFault>

    <ActivityId>69785581-ac5d-4d40-bf1d-cc51c00cb1b7</ActivityId>

    <ErrorCode>-2147220970</ErrorCode>

    <ErrorDetails xmlns:a="">schemas.datacontract.org/.../System.Collections.Generic" />

    <HelpLink i:nil="true" />

    <Message>System.FormatException: Input string was not in a correct format.

   at System.Text.StringBuilder.FormatError()

   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)

   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)

   at System.String.Format(IFormatProvider provider, String format, Object arg0, Object arg1)

   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): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #EA15E8F4</Message>

    <Timestamp>2020-06-18T04:38:18.5980082Z</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()

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Error occurred while registering the assembly

    Hi,

    Can you download latest sdk tools from link below and try.

    https://xrm.tools/

    If found helpful, Please mark my answer verified.

  • Linn Zaw Win Profile Picture
    3,407 on at
    RE: Error occurred while registering the assembly

    You need to change the project to .NET Framework 4.6.2. Not 4.6

    If you don't have 4.6.2, install the Developer Pack at dotnet.microsoft.com/.../net462

  • Abhilash M abi Profile Picture
    595 on at
    RE: Error occurred while registering the assembly

    Error:Could not install package 'Microsoft.CrmSdk.CoreAssemblies 9.0.2.26'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

  • Linn Zaw Win Profile Picture
    3,407 on at
    RE: Error occurred while registering the assembly

    According to the nuget package info, Microsoft.CrmSdk.CoreAssemblies 9.0.2.26 supports Microsoft .NET Framework 4.6.2

    https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/

  • Abhilash M abi Profile Picture
    595 on at
    RE: Error occurred while registering the assembly

    it didn't work for me..

    when change in framework Nuget package will throw error....

  • Linn Zaw Win Profile Picture
    3,407 on at
    RE: Error occurred while registering the assembly

    Can you recompile your plugin with .NET Framework 4.6.2? The error message is quite similar to the one mentioned in this KB article.

    https://support.microsoft.com/en-nz/help/4464324/input-string-was-not-in-a-correct-format-error-occurs-when-importing-s

    Ref: https://docs.microsoft.com/en-au/dynamics365/customerengagement/on-premises/developer/supported-extensions#SupportNET

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 32 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 21

Overall leaderboard

Product updates

Dynamics 365 release plans