Sean
Sean

Reputation: 223

MSCRM 4.0 - Error Logging from a Custom Plugin

I am using mscrm 4.0 and .net 3.5.

I have written a custom plugin, that is erroring! (solving the error is not my question though)

When my dynamic entity code, tries to update the organisation, it errors with a generic Soap Exception "Server was not able to process request".

I need to look at the inner detail of the soap exception to figure out the problem.

So my question is - what is the best way to log errors and get all of the information from a soap exception - from custom plugin?

Thanks

Upvotes: 0

Views: 554

Answers (1)

Luke Baulch
Luke Baulch

Reputation: 3656

If you're using a try-catch then you could always catch a SoapException first then log the inner exception/detail property.

Upvotes: 1

Related Questions