Reputation: 1336
While running my script through Visual Studio (Selenium-C#), my AutoIt script for opening dialogs works perfectly, but when running the same script from the Nunit(.Net) client, the same tests are being failed getting the following error:
ReportAppeal.MainTestRunner.OpenFile("Email"):
System.Runtime.InteropServices.COMException : 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)).
Anything I'm doing wrong?
Upvotes: 1
Views: 401
Reputation: 1336
Okay the solution was:
HKEY_CLASSES_ROOT\AppID
HKEY_CLASSES_ROOT\AppID{6E8109C4-F369-415D-AF9A-2AEEFF313234}
REG_SZ
(String) entry called DllSurrogate
For some reason, this completely solved the issue. Worked in Windows 7 - 64bit
Reference:
How to use a 32 bit COM object on Windows Server 2008 (works on 2008 R2 but non 2008)
Upvotes: 2