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 365 | Integration, Dataverse...
Answered

Unable to Login to Dynamics CRMOrganizationServiceProxy is null

(0) ShareShare
ReportReport
Posted on by 162

Hello Community,

I am getting an error in my Console App which is run for the last 2 years without any issue similar to this "Unable to Login to Dynamics CRMOrganizationServiceProxy is null"

Following is the screenshot for code for connection:

6874.Screenshot_5F00_39.png

We have just changed the password for that user because the password got expired recently. But in CRM Connection string we have updated the password.

Can you anyone please let me know why we are getting the issue?

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

    Hello,

    I don't have the exact reason why your code stopped working but I know what to do to fix it:

    I would recommend to update references to use the latest version of the SDK from NuGet and replace 2 and 3 lines with a single line:

    IOrganizationService service = new CrmServiceClient(ConfigurationManager.ConnectionStrings["CRM"].ConnectionString);

  • Amit Prajapati Profile Picture
    162 on at

    Hi,

    I have try to change the connection line with your line of code but it didn't work for me:

    IOrganizationService service = new CrmServiceClient(ConfigurationManager.ConnectionStrings["CRM"].ConnectionString);

    I can't update the packages because the codebase is 3 years old and If I will update the package to the latest version then I need to do rework on the code.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Amit,

    So what exactly doesn't work?

    Also what "rework on the code" do you mention? There (usually) no need to change the code when you change the reference to the most recent version of assemblies.

  • Verified answer
    Amit Prajapati Profile Picture
    162 on at

    I have used the credentials for another environment then it is working. It is not an issue with Codebase or Package used. I think it because of user configuration.

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 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans