
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Debugging Problems When Loading an Assembly
|
385
C:\BOOK CS CookBook\Code\Test.cs:line 49
at ClassLibrary1.Reflect.TestInvoke( ) in
C:\BOOK CS CookBook\Code\Test.cs:line 49
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault, Assembly caller, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
atReflect.ReflectionException( ) in c:\book cs cookbook
\code\test.cs:line 22
Using the ToString method is a quick and simple way of displaying the most rele-
vant outer exception information along with the most relevant information for each
inner exception.
See Also
See the “Type Class” and “MethodInfo Class” topics in the MSDN documentation.
7.7 Debugging Problems When Loading an Assembly
Problem
You want to use a reflection-based technique, such as the static Assembly.LoadFrom
method, ...