开发者

MSCRM 4.0 - Error Logging from a Custom Plugin

开发者 https://www.devze.com 2023-04-01 06:55 出处:网络
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)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消