O
Osvaldo Bisignano
I'm using Assembly.CreateInstance (3rd overload) to create an instance of one of the types included on that dll.
But what the hell are the bindingflags? I get this exception:
MissingMethodException
Constructor not Found on class ...
Source: mscorlib
TargetSite:System.Object CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])
STACKTRACE:
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at Legion.Comun.frmABM.EjecutarComandoDeMenu(ComandoEnum Comando) in C:\Mis Documentos\Proyectos de Visual Studio\Local\Legion\Legion.Comun\frmABM.vb:line 324
I only want to access the default constructor.
Thanks very much
But what the hell are the bindingflags? I get this exception:
MissingMethodException
Constructor not Found on class ...
Source: mscorlib
TargetSite:System.Object CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])
STACKTRACE:
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at Legion.Comun.frmABM.EjecutarComandoDeMenu(ComandoEnum Comando) in C:\Mis Documentos\Proyectos de Visual Studio\Local\Legion\Legion.Comun\frmABM.vb:line 324
I only want to access the default constructor.
Thanks very much