LaunchFormOptions lfo = new LaunchFormOptions();
lfo.IsModal = false;
lfo.ValueIn = “”;
ProcessCaller.LaunchForm(oTrans, “AUTOSN”, lfo);
When I try to run this code I get the error shown here. AUTOSN is an ID of a Process I have defined. Does anyone see what I have wrong?
Application Error
Exception caught in: Ice.Lib.EpiClientLib
Error Detail
Message: The process caller failed to invoke method LaunchForm in Ice.Lib.App.Launch in Erp.UI.SelectSerialNumbersEntry.dll
Inner Exception Message: Exception has been thrown by the target of an invocation.
Program: Ice.Lib.EpiClientLib.dll
Method: InvokeReflectedMethod
Client Stack Trace
at Ice.Lib.Framework.PCallReflector.InvokeReflectedMethod(MethodInfo Method, Object Object, Object[] MethodParams, String className, String assemblyName)
at Ice.Lib.Framework.PCallReflector.LaunchDotNet(String assemblyName, String className, Hashtable ctorList, String methodName, Hashtable methodList)
Inner Exception
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Ice.Lib.Framework.PCallReflector.InvokeReflectedMethod(MethodInfo Method, Object Object, Object[] MethodParams, String className, String assemblyName)
Inner Exception
Unable to cast object of type ‘Ice.Lib.Framework.LaunchFormOptions’ to type ‘Erp.UI.App.SelectSerialNumbersEntry.SerialNumbersArgs’.
at Ice.Lib.App.Launch.LaunchForm(Object LaunchObject)