How can I determine the exception which comes from the dll
Main.exe
-subdll1.dll //dll error occurs at this, how can I find the error occurred from this dll.
-subdll2.dll
like this
delegate(object sender, UnhandledExceptionE开发者_运维问答ventArgs e) {
e.ExceptionSourceAssebmly like this
}
To see where an exception is defined you'll need to look at the top of the exception's stack trace.
Exception.TargetSite
might contain this information directly (as a MethodBase
), but the documentation notes it doesn't work across AppDomain boundaries.
精彩评论