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 :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    David Jennaway Profile Picture
    14,065 on at

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

  • Community Member Profile Picture
    on at

    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!

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans