I'm trying to automate Internet Explorer using WatiN library in a Web App hosted on azure. I'm getting the following exception when trying to create an instance of IE :
System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0002DF01-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE))
First, is it possible to automate IE in a web application that is hosted on azure? (I know it's a bad idea to do so anyway) And how to solve this exception if it's possible.
Update : Before getting this exception I was getting another one saying that Interop.SHDocVw.dll was not found. I set Imbed Interop Types property to false and Copy Local to true and the exception is gone.