Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

generate early bound classes in Dynamic CRM

(0) ShareShare
ReportReport
Posted on by 902

Hi,

Dynamic CRM online , I am trying to generate Early bound classes but getting error like

" An error occurred when processing the security tokens in the message:You are using Ws-Tust authentication which has been deprecated and no longer supported in your environment. Please use oAuth2.0 authentication.
An error occurred when processing the security tokens in the message:You are using Ws-Tust authentication which has been deprecated and no longer supported in your environment. Please use oAuth2.0 authentication.Unable to Login to Dynamics CRM"

Is there any way to generate Early bound classes using new authentication method(oAuth2.0) ?

Thanks,

Keyur Shah

  • suresh maurya Profile Picture
    630 on at
    RE: generate early bound classes in Dynamic CRM

    Hi Keyur,

    Were you able to fix this issue? I am getting the same error.

  • keyur7379 Profile Picture
    902 on at
    RE: generate early bound classes in Dynamic CRM

    Hi,

    Now I am getting this error today.

    This error was generating using CrmSvcUtil.exe and XRM toolbox both. I think, Microsoft has changed something for authentication policy.  

    Please advise.

    System.NullReferenceException: Object reference not set to an instance of an object.

      at Microsoft.Crm.Services.Utility.CodeGenerationService.UpdateAttributeMemberStatements(AttributeMetadata attribute, CodeTypeMember attributeMember)

      at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildAttributeOptionSet(EntityMetadata entity, AttributeMetadata attribute, CodeTypeMember attributeMember, ServiceProvider serviceProvider)

      at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildEntity(EntityMetadata entity, ServiceProvider serviceProvider)

      at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildEntities(EntityMetadata[] entityMetadata, ServiceProvider serviceProvider)

      at Microsoft.Crm.Services.Utility.CodeGenerationService.BuildCodeDom(IOrganizationMetadata organizationMetadata, String outputNamespace, ServiceProvider serviceProvider)

      at Microsoft.Crm.Services.Utility.CodeGenerationService.Microsoft.Crm.Services.Utility.ICodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String outputNamespace, IServiceProvider services)

      at DLaB.CrmSvcUtilExtensions.BaseCustomCodeGenerationService.WriteInternal(IOrganizationMetadata organizationMetadata, String language, String outputFile, String targetNamespace, IServiceProvider services)

      at DLaB.CrmSvcUtilExtensions.BaseCustomCodeGenerationService.Write(IOrganizationMetadata organizationMetadata, String language, String outputFile, String outputNamespace,

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: generate early bound classes in Dynamic CRM

    I can't help you with issue number 2 but I'm pretty sure that XrmToolBox and Early Bound Generator work that means - you're doing something wrong. I would recommend to leave an issue on the GitHub of the author of the tool - github.com/.../DLaB.Xrm.XrmToolBoxTools

  • keyur7379 Profile Picture
    902 on at
    RE: generate early bound classes in Dynamic CRM

    Yes Tried both way

    1. XRM toolbox - Entity class generated with out data 0 kb.

    2. CrmSvcUtil.exe - Above mentioned error

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: generate early bound classes in Dynamic CRM

    Hello,

    What do you use to generate Early Bound Classes? Have you tried XrmToolBox and Early Bound Generator plugin?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 32 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 21

Overall leaderboard

Product updates

Dynamics 365 release plans