How to fix this AutoIt COM reference error in .net?

0

My C# WinForm apps crashes when I try to reference AutoIt. In the past I have been able to use it no problem. I recently changed computers to Windows 10 and none of the codes that reference AutoIt seems to be working.

I believe this is due to a DLL import error:

Additional information: Retrieving the COM class factory for component with CLSID {1A671297-FA74-4422-80FA-6C5D8CE4DE04} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I can run AutoIt scripts directly but not through c#.

using AutoItX3Lib;

  //  and in the line where I call it. 
     AutoItX3 x = new AutoItX3();

I am thinking this error might be a registry issue. Thank you.

c#
.net
autoit
asked on Stack Overflow Jul 17, 2019 by SUPERNOVICE • edited Jul 17, 2019 by Mosrod

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0