Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CrmSvcUtil.exe unable to connect to Dynamics 365 online to create early bound

(0) ShareShare
ReportReport
Posted on by 92

I try to create a MVC application by following this:  https://msdn.microsoft.com/en-us/library/gg695790(v=crm.7).aspx#generate

For the first step, generating early bound types, I run the command line as instructed. But I got error like below. Anyone has any advice? Thanks.

6505._5563B783_.JPG

*This post is locked for comments

  • Jason M. Cosman Profile Picture
    Jason M. Cosman 5,234 on at
    RE: CrmSvcUtil.exe unable to connect to Dynamics 365 online to create early bound

    Awh that is the issue the older SDK. Let me take a looksee on this piece.

  • Charlie Chen Profile Picture
    Charlie Chen 92 on at
    RE: CrmSvcUtil.exe unable to connect to Dynamics 365 online to create early bound

    Hi Jason,

    Yes, I use a 2011 sdk. I cannot find the  Microsoft.Xrm.Client.CodeGeneration extension in any other newer sdk.

    Thanks.

  • Jason M. Cosman Profile Picture
    Jason M. Cosman 5,234 on at
    RE: CrmSvcUtil.exe unable to connect to Dynamics 365 online to create early bound

    Hey Charlie;

    I apologize the URL should be using is under Settings->Customizations->Developer Resources. Mine is: xxxxxxx.api.crm3.dynamics.com/.../Organization.svc so your first url seems like it should be right. What SDK do you have downloaded? Given your folder structure it seems like it would be a CRM 2011 sdk?

  • Charlie Chen Profile Picture
    Charlie Chen 92 on at
    RE: CrmSvcUtil.exe unable to connect to Dynamics 365 online to create early bound

    Hi Jason,

    Thanks a lot for you help. I replaced the url with "disco.crm3.dynamics.com/.../Discovery.svc", but it doesn't work and shows another error as below. And I don't understand what "pass in an org to it" means. Thanks.

    _5563B783_2.JPG

  • Jason M. Cosman Profile Picture
    Jason M. Cosman 5,234 on at
    RE: CrmSvcUtil.exe unable to connect to Dynamics 365 online to create early bound

    Hey Charlie;

    According to the MSDN articile you shouldn't need the .api. part of your connection Organization.svc service.  Take a look here : msdn.microsoft.com/.../gg309401.aspx. Could use "disco.crm3.dynamics.com/.../Discovery.svc" and then pass in an org to it.

    Try it and let me know if that works.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans