Ranorex Studio 1.5.0.3287: Class not registered exception

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
fredy
Posts: 1
Joined: Fri Aug 29, 2008 9:14 am

Ranorex Studio 1.5.0.3287: Class not registered exception

Post by fredy » Fri Aug 29, 2008 9:36 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Mon Sep 01, 2008 2:30 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Tue Sep 02, 2008 12:17 pm

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