T
tlwright1414
I'm trying to late bind and invoke a method on a .net 2.0 assembly from
a .net 1.1 assembly. I'm getting and error 'The format of the file
'myAssembly.dll' is Invalid. Can't figure it out. Any suggestions are
much appreciated.
Assembly p = Assembly.LoadFrom( asFilePath );
object o = p.CreateInstance( asClassName );
object[] args = new object[4]{m_AssemblyDoc, ao, m_ProcessesDoc,
cbProduct.SelectedItem};
MethodInfo Method = o.GetType().GetMethod("Process");
Object obj = Activator.CreateInstance(o.GetType());
Method.Invoke( obj, args );
a .net 1.1 assembly. I'm getting and error 'The format of the file
'myAssembly.dll' is Invalid. Can't figure it out. Any suggestions are
much appreciated.
Assembly p = Assembly.LoadFrom( asFilePath );
object o = p.CreateInstance( asClassName );
object[] args = new object[4]{m_AssemblyDoc, ao, m_ProcessesDoc,
cbProduct.SelectedItem};
MethodInfo Method = o.GetType().GetMethod("Process");
Object obj = Activator.CreateInstance(o.GetType());
Method.Invoke( obj, args );