Hello,
I would like to know whether it is possible to create ad-hoc
connections to a COM+ Server without needing to install a corresponding
proxy first. Basically, I am already doing this (C#):
guid = new Guid("XXXXXX-XXXXX-XXXX-XXX-etc");
Type typeSrv = Type.GetTypeFromCLSID(guid, sServer, false);
Object obj = Activator.CreateInstance(typeSrv);
// then casting obj to the desired type.
I get an "class not registered" error on startup, when no proxy exists.
Of course, when trying to use RegSvcs on the assembly, I register an
COM+ "Application" which I do not want to. Can I use RegSvcs just to
create the proxy? I am right now dissecting the created proxy to find
out what the msi installer is doing.
Thank you for your help and cheers,
Amanjit Singh Gill
Johannes Passing - 24 Jan 2006 20:23 GMT
Unless you are using custom marshalling, you only have to register the
typelib on the client machine. Registering it with regsvcs is not
neccessary.
/Johannes
> Hello,
>
[quoted text clipped - 15 lines]
> Thank you for your help and cheers,
> Amanjit Singh Gill
amanjit.singh.gill@googlemail.com - 26 Jan 2006 22:46 GMT
Thank you Johannes, regasm or the corresponding msi installer
functionality ist my friend. I could not to see the wood for the trees.
Thanks again + cheers