Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Assembly version error importing Dynamics 365 solution


View products that this article applies to.

Symptom

When you attempt to import a solution in Dynamics 365 (online), the import fails with the following message

"The import of solution: [solution name] failed"

If you click Download Log File, you see details similar to the following message:

"An error occurred while importing a Solution. : Microsoft.Crm.CrmException: This plugin assembly uses version {0} of the .NET Framework. At this time Microsoft Dynamics 365 requires version {1} of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version {1} 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)    at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.CreateOrGetExistingPluginAssembly(PluginAssembly pluginAssembly, String fileContent, BusinessProcessObject bpoService, Boolean skipValidation, BusinessEntityCollection& existingPluginAssemblies)    at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.ImportItem()"

In the example provided above, {0} is a version that is too high and {1} is the currently supported version. You may also see a reference to error code 8004420B, 8004418B, or -2147204725.

↑ Back to the top


Cause

This error can occur if you are trying to import a solution that includes a plugin assembly compiled on a version of the .NET Framework that is not currently supported by Microsoft Dynamics 365 (online). 

↑ Back to the top


Resolution

Recompile the assembly using the mentioned version of the .Net Framework.

For information about the .NET Framework version currently supported by Dynamics 365 (online), see Support for .NET Framework Versions.

↑ Back to the top


Keywords: Dynamics 365, solution, assembly, plugin, .NET, framework, version, rebuild, 8004420b, 8004418b, -2147204725

↑ Back to the top

Article Info
Article ID : 4345239
Revision : 8
Created on : 2/20/2019
Published on : 2/20/2019
Exists online : False
Views : 343