Page 1 of 1

Ranorex Studio 1.5.0.3287: Class not registered exception

Posted: Fri Aug 29, 2008 9:36 am
by fredy
Hello all

When trying to run the provided Web Testing Automation Sample the exception mentioned occurs. The content of the message is as folows:

Exception System.Runtime.InteropServices.COMException was thrown in debuggee:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

UpdateWindowFromHandle()
.ctor()
GetDocument()
OpenDocument()
OpenApplicationUnderTest() - c:\My Documents\RanorexStudio Projects\Samples\Web Testing Automation Sample(6)\Program.cs:55,4
Main() - c:\My Documents\RanorexStudio Projects\Samples\Web Testing Automation Sample(6)\Program.cs:28,17

What exactly is to do here to fix the problem ?

Thanks for any helping hint.
Fredy

Posted: Mon Sep 01, 2008 2:30 pm
by Support Team
We could reproduce this exception on Windows XP and Internet Explorer 6.0 with Ranorex V1.5.0.3184 and higher. IE 7.0 seems to be working fine, so does IE 6.0 on Windows 2000. We are currently working on this problem and will inform you as soon as we have a solution for it.

As a workaround you can use the Application.StartWindowsApplication and WebDocument.GetDocument methods to start a new IE instance and get the WebDocument from it:

Code: Select all

 Form ieForm = Application.StartWindowsApplication("iexplore.exe", "http://yourUrl.com");
WebDocument doc = WebDocument.GetDocument(ieForm);
Regards,
Alex
Ranorex Support Team

Posted: Tue Sep 02, 2008 12:17 pm
by Support Team
We have found a solution for this bug. The bug fix is included in the Ranorex V1.5.1 release that can be downloaded from our homepage:
http://www.ranorex.com/download.html

Regards,
Alex
Ranorex Support Team