Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Problem generating early-bound classes using CrmSvcUtil.exe

Posted on by Microsoft Employee

Our IT applied some security patch a few months ago and now the same command I used to generate early bound classes no longer working. 

Here is the command that worked before:

CrmSvcUtil.exe /out:myProxy.cs /url: devcrm.myco.com/.../Organization.svc /username:un@myco.com  /password: pwd  /serviceContextName:myContext

Now I am getting error:

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : ERROR REQUESTING ORGS FROM THE DISCOVERY SERVER
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : Source : mscorlib
Method : HandleReturnMessage
Date : 8/17/2018
Time : 5:33:33 PM
Error : Access is denied.

What could have caused this? user permission level changed? There is no change in Svc url as I was able to browse to it and render the .wsdl. 

The user un is still valid as I was able to use VS2017 new Dynamics 365 Solution Template to connect to it and saw existing entities. 

My CrmSvcUtil.exe  version is 9.0.0.9340

The unknown (IT didn't remember what upgrade they did but they assured me there was not change in user security privilege ) driving me nuts - why was this tool so brittle to break? 

*This post is locked for comments

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Problem generating early-bound classes using CrmSvcUtil.exe

    Glad it is resolved. Please mark the suggestion as helpful if it helped you.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Problem generating early-bound classes using CrmSvcUtil.exe

    Thanks so much for your answer. I downloaded and installed the Early Bound Generator plugin and eventually it helped me get the problem resolved. The key was to enter the Server address without Https:// or Http://, and also I needed to select the "Internet-facing deployment (IFD)" as Authentication Source, when prompted.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Problem generating early-bound classes using CrmSvcUtil.exe

    Make sure User have System Administrator role and also you can try with Service Account User.

    I am not sure what changes has been done in the environment , you can also try to download the new SDK as per your CRM version and check , which might be probable reason.

    www.nuget.org/.../Microsoft.CrmSdk.CoreAssemblies

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Problem generating early-bound classes using CrmSvcUtil.exe

    Hi,

    Try "Early Bound Generator" plugin available in Xrm toolbox.

    www.xrmtoolbox.com/.../DLaB.Xrm.EarlyBoundGenerator

    Hope this helps.

  • Suggested answer
    Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Problem generating early-bound classes using CrmSvcUtil.exe

    Try the advice in this blog post

    mscrm365.blogspot.com/.../dynamics-crm-v9-connection-error-in.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans