cancel
Showing results for 
Search instead for 
Did you mean: 

CrmSvcUtil.exe 2015 SDK Action generation is not compatible with 2013 CRM instance

Author Name: Daryl LaBar

I posted a question on the Microsoft Forms (https://community.dynamics.com/crm/f/117/p/154282/359652.aspx#359652). The 2015 SDK works just fine generating Entities and Option Set Enums against a 2013 CRM instance, and I can generate the Actions just fine pointing to a 2015 Crm instance. But when attempting to generate Actions pointing to a 2013 instance I get this error:

CrmSvcUtil.exe Information: 0 : Skipping SDK Message InviteUser from being generated.
CrmSvcUtil.exe Information: 0 : Skipping SDK Message RetrievePerformanceReport from being generated.
CrmSvcUtil.exe Information: 0 : Skipping SDK Message ResetPerformanceReport from being generated.
CrmSvcUtil.exe Information: 0 : Skipping SDK Message ExpandWorkflows from being generated.
CrmSvcUtil.exe Information: 0 : Entering BuildMessage
CrmSvcUtil.exe Information: 0 : Skipping RetrievePrincipalAttributePrivileges.Message Pair from being generated.
CrmSvcUtil.exe Information: 0 : Exiting BuildMessage
CrmSvcUtil.exe Information: 0 : Entering BuildMessage
CrmSvcUtil.exe Information: 0 : Entering BuildMessageRequest
CrmSvcUtil.exe Information: 0 : Entering BuildRequestField

Exiting program with exception: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, Pu
blicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the
assembly reference. (Exception from HRESULT: 0x80131040)
Enable tracing and view the trace files for more information.
CrmSvcUtil.exe Error: 0 : Exiting program with exit code 2 due to exception : System.IO.FileLoadException: Could not loa
d file or assembly 'Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT:
0x80131040)
File name: 'Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOn
ly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOn
ly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
at System.Type.GetType(String typeName, Boolean throwOnError)
at Microsoft.Crm.Services.Utility.TypeMappingService.GetTypeForField(String clrFormatter, Boolean isGeneric)
at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildRequestField(SdkMessageRequest request, SdkMessageReques
tField field, ServiceProvider serviceProvider)
at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildMessageRequest(SdkMessagePair messagePair, SdkMessageReq
uest sdkMessageRequest, ServiceProvider serviceProvider)
at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildMessage(SdkMessage message, ServiceProvider serviceProvi
der)
at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildMessages(SdkMessages sdkMessages, ServiceProvider servic
eProvider)
at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildCodeDom(IOrganizationMetadata organizationMetadata, Stri
ng outputNamespace, ServiceProvider serviceProvider)
at Microsoft.Crm.Services.Utility.CodeGenerationService.Microsoft.Crm.Services.Utility.ICodeGenerationService.Write(I
OrganizationMetadata organizationMetadata, String language, String outputFile, String outputNamespace, IServiceProvider
services)
at Microsoft.Crm.Services.Utility.CrmSvcUtil.WriteCode(IOrganizationMetadata organizationMetadata)
at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\F

Status: New
Comments
D365Ideas_Admin
Regular Visitor
Status changed to: New