Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter count mismatch #470

Open
Atili0 opened this issue Mar 3, 2023 · 2 comments
Open

Parameter count mismatch #470

Atili0 opened this issue Mar 3, 2023 · 2 comments

Comments

@Atili0
Copy link

Atili0 commented Mar 3, 2023

Hi teams,

Somebody know something about this error?

12:35:01 CrmSvcUtil Error: 2 : Exiting program with exit code 2 due to exception : System.Reflection.TargetParameterCountException: Parameter count mismatch.
12:35:01 at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
12:35:01 at spkl.CrmSvcUtilExtensions.CodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String targetNamespace, IServiceProvider services)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.WriteCode(IOrganizationMetadata organizationMetadata)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
12:35:01 CrmSvcUtil Error: 2 : ===== DETAIL ======
12:35:01 CrmSvcUtil Error: 2 : Source : mscorlib
12:35:01 Method : InvokeArgumentsCheck
12:35:01 Date : 12:35:01
12:35:01 Time : 03/03/2023
12:35:01 Error : Parameter count mismatch.
12:35:01 Stack Trace : at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
12:35:01 at spkl.CrmSvcUtilExtensions.CodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String targetNamespace, IServiceProvider services)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.WriteCode(IOrganizationMetadata organizationMetadata)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
12:35:01 ======================================================================================================================
12:35:01

@scottdurow
Copy link
Owner

Hi @Atili0 - you will need to use version 9.1.0.79 of the core tools instead of the latest - see #461

@Atili0
Copy link
Author

Atili0 commented Mar 3, 2023

Hi Scott

thanks for your reply. I downloaded the version 9.1.0.115 but I still having an error

12:35:01 CrmSvcUtil Error: 2 : Exiting program with exit code 2 due to exception : System.Reflection.TargetParameterCountException: Parameter count mismatch.
12:35:01 at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
12:35:01 at spkl.CrmSvcUtilExtensions.CodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String targetNamespace, IServiceProvider services)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.WriteCode(IOrganizationMetadata organizationMetadata)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
12:35:01 CrmSvcUtil Error: 2 : ===== DETAIL ======
12:35:01 CrmSvcUtil Error: 2 : Source : mscorlib
12:35:01 Method : InvokeArgumentsCheck
12:35:01 Date : 12:35:01
12:35:01 Time : 03/03/2023
12:35:01 Error : Parameter count mismatch.
12:35:01 Stack Trace : at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
12:35:01 at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
12:35:01 at spkl.CrmSvcUtilExtensions.CodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String targetNamespace, IServiceProvider services)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.WriteCode(IOrganizationMetadata organizationMetadata)
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
12:35:01 at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
12:35:01 ======================================================================================================================
12:35:01
23:53:20 Read 0 Global OptionSets
23:53:20 Read 1 SDK Messages
23:53:20 Completed Reading Metadata from Server - 00:00:13.7266329
23:53:20 Completed Reading Metadata from MetadataProviderService - 00:00:16.5206290
23:53:20 Begin Writing Code File

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants