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:
It will be helpful if anyone can advise me please?
Thanks
B
*This post is locked for comments
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!
If you catch the exception as a FaultException<OrganizationServiceFault> , the Detail property should give you more information on the error
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156