web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CrmSvcUtil.exe does not run

(0) ShareShare
ReportReport
Posted on by 20

Hi, I an new to Dynamics CRM, so please excuse my lack of knowledge.

I have a ASP.Net web app that had it's own contacts database for members, newsletters, logings , roles, etc. The client has decided to move to storing all the contacts in the CRM and I'll update my data access classes to talk to the CRM. We are using CRM 2011 installed as 'on-premise'. I decided to use the Early Binding (http://msdn.microsoft.com/en-us/library/gg327844), and so needed to run the CrmSvcUtil.exe tool.

We are using a test Crm for the transition phase, so we are using a hosted on-premise CRM for 2 months during this period. So I have a URL and a username and password that I can use to login to the CRM.

I downloaded the 2011 SDK to my dev machine.

I then tried to run the CrmSvcUtil.exe tool, but all I ever get is the CrmSvcUtil help returned. The actual code generation never seems to start.

From searches I fould that I can run the tool like:

CrmSvcUtil.exe /url:http://myurl /XRMServices/2011/Organization.svc /out:GeneratedCrm.cs /username:MYUSERNAME /password:MYPASSWORD

AND

crmsvcutil /connectionString="Authentication Type=AD;Server=http://myurlUser ID=MYUSERNAME;Password=MYPASSWORD" /namespace:DynamicsCrm.Xrm /dataContextPrefix:DynamicsCrm /out:DynamicsCrm.Xrm.cs

I have tried adding more and less of the parameters, but all I ever get is the help:


CrmSvcUtil : CRM Service Utility [Version 5.0.9688.42]
© 2010 Microsoft Corporation.  All rights reserved.


Options:
 /nologo
  Suppresses the banner.

 /language:<language>
  The language to use for the generated proxy code.  This can be either 'CS'
  or 'VB'.  The default language is 'CS'.  Short form is '/l:'.

etc.....

 

After search for a few hours I think I must have missed something simple, but I just can't see it.

Any help would be greatly appreciated.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sandrion Di Mattia Profile Picture
    5 on at

    Hi Brian,

    There are a few problems with the arguments you are passing to CrmSvcUtil:

    - There should not be a space in the URL

    - You might need to add the domain to the arguments

    - Using '/connectionString' is not supported in CRM 2011

    Here is a correct example:

    CrmSvcUtil.exe /url:"http://server/Contoso/XRMServices/2011/Organization.svc" /out:"ContosoContext.cs" /username:"sandrino@CONTOSO" /password:"pass" /serviceContextName:"ContosoContext"

    You can find more information on CrmSvcUtil in my blog post: sandrinodimattia.net/.../Early-binding-tips-and-tricks-for-Dynamics-CRM-2011.aspx

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans