Type from ProgID on remote machine

  • Thread starter Thread starter sjoshi
  • Start date Start date
S

sjoshi

Hello All
I'm using the Type tp = Type.GetTypeFromProgID(progID, machineName)
call to get a COM object type from a remote machine. The wierd thing is
that, even though the remote machine does not exist, I still get a
System.__COMObject for tp. As per doc, I thought it would be null.

Can someone please enlighten me here..??

thanks
Sunit
 
But the condition for null never evaluates to True as below

tp = Type.GetTypeFromProgID(progID, machineName, true);
if(tp==null)
//Never reaches here


And tp gets all the properties filled in. Is there a specific property
of Type object that will tell me that the object I wanted to create did
not ??

thanks
Sunit
 
I think there is a bug with GetTypeFromProgID especially when the
ProgID is also registered on the local machine. So eventhough I'm
specifying a machine name that is different then my local machine, it's
returning me a type from that created on my machine.

Sunit
 
Back
Top