Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

I can't connect organization service after upgrade (on-prem)

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I cannot connect organization (on-prem) service after the 9.1 upgrage.

The crm is working, I can use the crm pages. But I cannot connect the org. service from code.

Also plugin registration tool doesn't connect.

When I restart ISS, I can only connect to the service with the first request. But the second request gets error.

I am out of ideas on how to fix this and would appreciate any help on this.

Thanks,

Fatih

  • XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: I can't connect organization service after upgrade (on-prem)

    Hello,

    Do you use ADFS ?

    Do you see any errors in the event log?

  • Fatih Kasapoglu Profile Picture
    Fatih Kasapoglu 5 on at
    RE: I can't connect organization service after upgrade (on-prem)

    Thank you Abdul, I tried that but it didn't work.

  • Abdul Wahab Profile Picture
    Abdul Wahab 12,081 Moderator on at
    RE: I can't connect organization service after upgrade (on-prem)

    Hi Fatih Kasapoglu,

    How about the addition of the ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; line?

    public static IOrganizationService OrganizationService(string orgUrl, string _username, string _password)
            {
                var oUri = new Uri(orgUrl   "/XRMServices/2011/Organization.svc");
    
                var clientCredentials = new ClientCredentials();
                clientCredentials.UserName.UserName = _username;
                clientCredentials.UserName.Password = _password;
                ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
                var serviceProxy = new OrganizationServiceProxy(oUri, null, clientCredentials, null);
                serviceProxy.EnableProxyTypes();
                var service = (IOrganizationService)serviceProxy;
                return service;
            }

  • Fatih Kasapoglu Profile Picture
    Fatih Kasapoglu 5 on at
    RE: I can't connect organization service after upgrade (on-prem)

    Error detail:

    Source    : mscorlib

    Method    : HandleReturnMessage

    Date    : 31.03.2023

    Time    : 13:56:11

    Error    : The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

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