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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Authentication from WCF is taking long time

(1) ShareShare
ReportReport
Posted on by 1,672

Hi,

I am new to WCF, I have created a WCF service to connect with Dynamics CRM online and fetch some records.

The service is working as expected but the CRM authentication part is taking about 20+seconds, which is not acceptable for a web service.

I am using the authenticatewithnohelp class provided in the SDK (SDK\SampleCode\CS\GeneralProgramming\Authentication\AuthenticateWithNoHelp). 

Can someone please advise how can I improve the authentication time.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    tw0sh3ds Profile Picture
    5,600 on at

    How long does it take to authenticate to CRM from for exampe a console app? It should not make any difference of you are authenticating from WCF of console app or whatever else, if it's always taking this long you should contact Microsoft Support. Also I'm not sure why are you using this class - it's much easier to use Xrm.Tooling assembly with it's simplified connection.

    Also you should not authenticate against CRM with every call to your WCF service - usually the best way of handling this is caching IOrganizationService and reusing it for your calls (and you can do the authentication when your service starts, so there will be no delay in calls that will come in later), so the authentication time should not be an issue, it's all about the architecture of your service.

  • Nijos Profile Picture
    1,672 on at

    Hi Pawel,

    Thank you for the reply.

    This for an API which our company website will be using. I did the caching and it worked, however, the first authentication is taking 10-20 seconds I will open a ticket with MS for the same.

    Thanks

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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans