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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Console App - The server was unable to process the request due to an internal error

(0) ShareShare
ReportReport
Posted on by

Hi Experts!

Could you please help me i am trying to fetch records but it is throwing me error even service is coming.


Message:
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.

Code:
pastedimage1607018318769v1.png


Thanks,
ZG

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

    Hello,

    First recommendation - use CrmServiceClient instead of classes you used to use - docs.microsoft.com/.../use-xrm-tooling-retrieve-data

    If you're curious on how to migrate from older version of tooling you can check my post on it - butenko.pro/.../

    And just a recommendation - please avoid tagging me in old threads to summon me to new. I visit forum when I have time and if question is not answered and I know the way I can help - I'll step in.

  • ZeeshanGhause Profile Picture
    on at

    Thanks and sorry for tagging .

    Followed 1st link but still getting this issue
    6840.BRB.png
    Followed 2nd link and getting this
    pastedimage1607020361143v5.png

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

    Then you will have to dig deep to figure out what is wrong.

    But quick guess - what version of Microsoft.IndentityModel.Client.ActiveDirectory package do you use? It should be 2.28.3 and not higher.

  • ZeeshanGhause Profile Picture
    on at

    Same console code is working for an other crm org.

    here is the version 

    1376.BRB.png

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

    Have you tried to connect to that instance using XrmToolBox using the same credentials?

  • ZeeshanGhause Profile Picture
    on at

    just tried and faced this error

    pastedimage1607028627741v1.png

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

    So the issue is not related to the code but to some configuration of the instance itself.

  • ZeeshanGhause Profile Picture
    on at

    See even enable from azure

    pastedimage1607029204697v1.png

    pastedimage1607029228936v2.png



    4201.BRB.png

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans