.NET 3.5 ActiveX dll InteropServices.COMException

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.

+3
source share
1 answer

0x800702e4 , .

+6

Source: https://habr.com/ru/post/1719643/


All Articles