C# late binding on remote DCOM error: "Class not registered"


G

Guest

I attempted to find the solution and came close
(http://blogs.msdn.com/robgruen/archive/2005/01/24/359660.aspx) but cannot go
any further. I have an ASP.NET (2003/C#) app that calls a VB 6 DCOM on a
remote server. Identity used on DCOM is the same identity as used for the IIS
app.

Line of code that throws error:
object obj =
Activator.CreateInstance(Type.GetTypeFromProgID("class","server1"));

Error thrown:
System.Runtime.InteropServices.COMException: Class not registered

However, if I step through my code and change the aforementioned line to:
object obj =
Activator.CreateInstance(Type.GetTypeFromProgID("InternetExplorer.Application.1","server1")); it will step through without error.

I can login to the server and see the class in registry. Remote VB6 clients
(exe's) that use this component are able to use it successfully, so I'm
positive that the component is setup properly and being used successfully via
the VB6 exe's. All I'm trying to do is call a single function in the class
and get its return value.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top