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 Dynamics CRMOrganizationWebProxyClient

(0) ShareShare
ReportReport
Posted on by 390
 
Hello

I have a program that runs 2 lines to connect to CRM Online. In my pc it works well, I have also tried in a server and it works well. The problem is that the same code does not work on the client's server and I do not know what else to look at. Any ideas? Can it be the client's proxy?
This is my code.

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
CrmServiceClient conn = new Microsoft.Xrm.Tooling.Connector.CrmServiceClient(ConfigurationManager.ConnectionStrings["crmonline"].ConnectionString);

  _orgService = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;

=> conn.LastCrmError; (unable to Login to Dynamics CRMOrganizationWebProxyClient)

<add name="crmonline" connectionString="Url=xxxxx.crm4.dynamics.com; Username=xxxx@xxxxxx.onmicrosoft.com; Password=xxxxxx; authtype=Office365"/>

Thank you very much.

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 Moderator on at
    RE: unable to Login to Dynamics CRMOrganizationWebProxyClient

    Hi Enrique,

    Seems the problem is related to network proxy and firewall. If you enable any proxy in the client network try to disable first and check.

    Also check  .net framework version in client machine. It's should be 4.6 or above.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

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,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans