Registration Free COM / COM Interop
-
I have a very simple dot net library that uses COM Interop and a simple test program in VB that uses CreateObject to instantiate the COM component. This works fine if I register the dot net library using REGASM but I cannot get it to work with a side by side manifest. I tried creating the manifest manually as well as using a number of different tools. The manifests look fine but it is unable to create the COM object. Is there anything special I am missing? any ideas what to look for? thanks Mike
-
I have a very simple dot net library that uses COM Interop and a simple test program in VB that uses CreateObject to instantiate the COM component. This works fine if I register the dot net library using REGASM but I cannot get it to work with a side by side manifest. I tried creating the manifest manually as well as using a number of different tools. The manifests look fine but it is unable to create the COM object. Is there anything special I am missing? any ideas what to look for? thanks Mike
You have to register your component using regasm and you can't do things like side-by-side. Although your component is written in .net, it is exposing itself via COM and COM is registry based and you can't leverage .net features like just loading assemblies from a directory. When you use REGASM it creates the required registry entries that give the exact location of your assembly to load when a COM client asks for your component.
-
You have to register your component using regasm and you can't do things like side-by-side. Although your component is written in .net, it is exposing itself via COM and COM is registry based and you can't leverage .net features like just loading assemblies from a directory. When you use REGASM it creates the required registry entries that give the exact location of your assembly to load when a COM client asks for your component.
Not true. COM works with side x side. I've done it myself but have to confess it is a while since I have done it. (Only visiting the COM forum for nostalgia)
-
Not true. COM works with side x side. I've done it myself but have to confess it is a while since I have done it. (Only visiting the COM forum for nostalgia)
I meant COM doesn't work easily side-by-side in the .net sense, but yes you can use the sxs framework to make side by side com assemblies. However re-reading the original question I think he was talking about registration free COM manifest files over standard registry-based registration. https://msdn.microsoft.com/en-us/library/fh1h056h(v=vs.110).aspx[^] But I think that only applies to .net clients, not the likes of VB.