I have a small COM + component as a service on a remote server.
I am trying to execute a method of this component using:
Type type = Type.GetTypeFromProgID("ComPlusTest.ComTestClass",serverName);
// Create Service
Object service = Activator.CreateInstance(type);
// Execute Method
String result = service.GetType().InvokeMember("LaunchPackage",
BindingFlags.InvokeMethod, null, parameters, null).ToString();
The type is returned as null.
What is the best way to do this?
The server is Windows 2003 Enterprise, the service is the .NET component that is used as COM + (I know that I do not need to do this, but the goal is to postpone the legacy application with the .NET component) The purpose of this is to simply check that the component is .NET COM +.
Thanks in advance!
source
share