Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Unable to create service proxy

(0) ShareShare
ReportReport
Posted on by

I have system administrator role in Dynamics 365 org. I am able to login to the Dynamics portal but not able to access through code.

  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Unable to create service proxy

    Can you please debug code and let us know what error you are getting?

  • Johnny Gong Profile Picture
    6,482 Moderator on at
    RE: Unable to create service proxy
    Good day Com,
    I am curious about this issue.
    Could you share related coding &exception when you access Portal?
    Did you use the following proxy to connect Portal?
    ClientCredentials mycredentials = new ClientCredentials();
                    mycredentials.UserName.UserName = "...";
                    mycredentials.UserName.Password = "...";
                    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
                    OrganizationService = (IOrganizationService)new OrganizationServiceProxy(new Uri("..."), null, mycredentials, null);
                    if (OrganizationService != null)
                    {};
    In addition ,have your tried the above coding to successfully connect your Org url ?
    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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans