Hi,
I am getting a Exception has been thrown by the target of an invocation
error when invoking a method
Here is the crux of the code.
I realise it could be a few things, any one give me an idea where
to start looking.
rotsey
object obj;
Type type;
type = Type.GetType("TBR.NET." + formdef.TableName);
obj = Activator.CreateInstance(type);
if (obj == null)
throw new ApplicationException("Cannot create object for type " +
formdef.TableName);
int retval = (int)type.InvokeMember("Update",
BindingFlags.InvokeMethod,null, obj, null);