MSCRM 4.0 - Error Logging from a Custom Plugin
I am using mscr开发者_StackOverflow中文版m 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
If you're using a try-catch then you could always catch a SoapException first then log the inner exception/detail property.
精彩评论