I have created com object for legacy apps (.net framework 3.5)
[ComVisible(true), Guid("...")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface MyComInterface
{
...
}
[ComVisible(true), Guid("...")]
[ProgId("...")]
[ClassInterface(ClassInterfaceType.None)]
public MyComObject: MyComInterface
{
...
}
it installs fine and everything ok in registry (progid, clsid) I can create instance and use it from .net applications:
var t = Type.GetTypeFromProgID("myProgID");
var o = Activator.CreateInstance(t);
But vbs file
set o = CreateObject("myProgID")
argues with error: 0x80070002 (file not found)
What can be wrong here ?