I have a little COM+ component as a service on a remote server.
I´m 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 a .NET component wraped as COM+ (I know that I don´t have to do it that way, but the purpose is to itegrate a legacy App with a .NET component) The purpose of this is just to test that the .NET COM+ Component works.
Thanks in advance!