Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unable to login to Online Dynamics 365

(0) ShareShare
ReportReport
Posted on by 795

Hi,

I can't login to Online Dynamics 365 and getting null service. Also, i can't login to that particular instance from Plugin Registration tool too. But, i can successfully login to Web UI Account with the same credentials. 

Any suggestions please.

Thanks,

*This post is locked for comments

  • Piyush Paliwal Profile Picture
    Piyush Paliwal 817 on at
    RE: Unable to login to Online Dynamics 365

    Glad it worked out for you. Also please note that as long as you are developing and debugging on Framework version 4.6 and above, Visual Studio 2017 then you don't need to have this line defined explicitly.

  • CRM Beginner  Profile Picture
    CRM Beginner 795 on at
    RE: Unable to login to Online Dynamics 365

    Thank you all for your replies. It worked using ServicePointManager..

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: Unable to login to Online Dynamics 365

    This error is coming  might be following reason  -

    - Already share above check whether you have added Security protocol.

    - Make sure you have latest version of SDK.

    - Make sure you are providing correct details to create crmserviceclient.

    stackoverflow.com/.../crmserviceclient-is-always-returning-null-organization-service.

    You can refer below link for more details  -

    arunpotti.wordpress.com/.../comment-page-1

  • Verified answer
    Piyush Paliwal Profile Picture
    Piyush Paliwal 817 on at
    RE: Unable to login to Online Dynamics 365

    Hey, I feel this has to do with the TLS1.2,

    Can you please download the Latest SDK tools from here docs.microsoft.com/.../download-tools-nuget and see if Plugin Registration Tools connects or not?

    Additionally, you can try putting this line somewhere at the start of your code

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


    Go through this article to know more, https://carldesouza.com/dynamics-365-tls-1-2-how-to-fix-apps/

    Let me know if this fixes your issue.

  • CRM Beginner  Profile Picture
    CRM Beginner 795 on at
    RE: Unable to login to Online Dynamics 365

    Hey Goutam, thanx for reply.

    I solved it by updating version of my Plugin Registration tool.

    But still, i can't connect it from my CrmServiceClient: error is "Unable to connect to CrmServiceClient getting OrganizationProxyService null"

  • gdas Profile Picture
    gdas 50,089 on at
    RE: Unable to login to Online Dynamics 365

    Can you please post here error details and screenshot.

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans