.net - Calling a COM+ Component remotely using C# -


I have a COM + component as a service on a remote server.

I am trying to execute this method by using this component:

  type type =. GetTypeProprog ("ComPlusTest.ComTestClass", serverName); // Create a service object service = activator Create Instances (Type); // Execution Method String result = service.GetType (). InvokeMember ("LaunchPackage", BindingFlags.InvokeMethod, blank, parameter, empty) .restring ();  

The type is returned as zero

What's the best way to do this ??

The server is Windows 2003 Enterprise, the service is a .NET component that COM + (I know I do not have to do this, but its purpose is to create a legacy app with a .NET component Its purpose is to test only that .NET COM + Component works.

Thanks in advance!

I have not tried to do this, but your attitude is understandable.

Perhaps you are running in another issue (such as configuration or permission)?

Some troubleshooting suggestions:

Try to run your test program directly on "remote" server.

In addition, you have tried changing your first line to:

  Type type =. GetTypeFromProgID ("ComPlusTest.ComTestClass", servername, true);  

This should be an exception, if an error occurs and you can provide some more information on the specific problem that you are killing.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -