Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM 2011: C# Console app errors while creating a Contact record

Posted on by Microsoft Employee

Hi

I have written a console app which will retrieve values from a database and will create Contact records in CRM.

I am getting an error at service.Create(Entity) and it says

"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."

I have a windows service application doing the similar functionality and it works fine. Not sure why I am getting this error.

I have already researched about this error in the below link, but my application is not a service so not sure where to apply the behavior to:

http://stackoverflow.com/questions/8315633/turn-on-includeexceptiondetailinfaults-either-from-servicebehaviorattribute-or

It will be helpful if anyone can advise me please?

Thanks

B

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2011: C# Console app errors while creating a Contact record

    Cheers David. This was helpful and I have fixed the issue. I have used this before as a template that I had for CRM plugins so I couldn't add in this application.

    Thanks for the reply!

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: CRM 2011: C# Console app errors while creating a Contact record

    If you catch the exception as a FaultException<OrganizationServiceFault> , the Detail property should give you more information on the error

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans