Using vs2008.NET 3.5 SP1
I am trying to use the ActiveX DLL in my C # console application project and I get this exception at runtime:
System.Runtime.InteropServices.COMException (0x800702E4): Retrieving the COM class factory for component with CLSID {4E58088E-7275-4EAA-8958-A9CCC971DDE9} failed due to the following error: 800702e4.
How can I find a solution to this problem?
I used regasm.exe to register in the DLL earlier and successfully registered.
dll name interop.sterling.dll
simple code:
using SterlingLib;
public class OrderPlacer
{
private void SendOrder()
{
var order = new SterlingLib.STIOrder();
}
}
I added a link to this DLL by viewing it and adding it as a link - then putting it in a folder /bin/debug
using reflection:
SterlingLib.STIOrderClass is a class whose base class is System.__ComObject
It implements the following interfaces
SterlingLib.ISTIOrder
SterlingLib.STIOrder
SterlingLib.STIOrder is an interface
I am running Vista, so I think it could be a UAC issue that does not allow full permissions, unlike if I were running XP.
source
share