try
{
object result = processClass.InvokeMethod(\"Create\", methodArgs);
}
catch (Exception e)
{
// Here I was hoping to get an error code.
}
I suggest you to use Message Properte from The Exception Object Like below code
try
{
object result = processClass.InvokeMethod("Create", methodArgs);
}
catch (Exception e)
{
//use Console.Write(e.Message); from Console Application
//and use MessageBox.Show(e.Message); from WindowsForm and WPF Application
}