Tuesday, June 26, 2012

CRMSvcUtil.exe parameter is incorrect

Today i have got a strange message while creating early bind class code even i have entered correct parameters in command line.
error: Parameter is incorrect
I have use following command
CrmSvcUtil.exe /url:https://myorg.crm.dynamics.com/XRMServices/2011/Organization.svc
    /out:GeneratedCode.cs /username:"myname@live.com" /password:"myp@ssword!" 
Which is correct.
Then i got a solution and decided to share with you
go to the below location
C:\Users\Mubasher(your username)
and delete the folder

Run the above command again.
I hope it helps you. Please share your experience in comments.
For more help on CrmSvcUtil.exe Extension Usage and Command-Line Parameters please check the following link