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

Notifications

Announcements

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

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

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

  • keyur7379 Profile Picture
    902 on at

    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

    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

    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,

  • suresh maurya Profile Picture
    630 on at

    Hi Keyur,

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

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
iampranjal Profile Picture

iampranjal 65

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans