2016-09-11 7 views
1

Visual Studio(Selenium-C#)でスクリプトを実行しているときに、AutoItスクリプトを開いてダイアログが表示されますが、Nunit(.Net)クライアントから同じスクリプトを実行すると、次のエラーを取得:私が間違ってやっているNunitを使用したAutoItスクリプト

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)).

何か?

答えて

2

オーケーソリューションでした。私はそれがHKEY_CLASSES_ROOT\AppID{6E8109C4-F369-415D-AF9A-2AEEFF313234}

  • で作成したHKEY_CLASSES_ROOT\AppID
    にAutoItXについて:(\ WINDOWS \ SYSWOW64の\レジストリエディターC)
  • 検索

    1. は、regeditと* 32を開き空白REG_SZ(ストリング)と呼ばれる項目DllSurrogate

    何らかの理由で、このコンプ明らかに問題を解決しました。 は、Windows 7で働いていた - 64

    参考:
    How to use a 32 bit COM object on Windows Server 2008 (works on 2008 R2 but non 2008)

  • 関連する問題