Ranorex Spy gave Unhandled exception.

Ask general questions here.
cancerion
Posts: 30
Joined: Tue Jun 16, 2009 6:15 pm

Ranorex Spy gave Unhandled exception.

Post by cancerion » Mon Aug 24, 2009 10:59 am

Hi,

I am using Ranorex 2.1.3
When i use Ranorex Spy to get control information respected to my forms,I am getting a unhandled Exception mentioned below:
-----------------------------------------------------------------------------------------------------
System.IO.FileNotFoundException: Could not load file or assembly 'UIAutomationClient, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'UIAutomationClient, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Ranorex.Plugin.WinFormsFlavorElement.CanReplace(FlavorElement flavorElem)
at Ranorex.Core.Element.CanReplace(Element element)
at Ranorex.Core.Element.IsChild(Element parentElement, Element& element)
at Ranorex.Core.Element.FindFromPoint(Point screenLocation)
at Ranorex.Controls.TrackerCheckBox.DoTracking(Point location, Element rootElement)
at Ranorex.Controls.TrackerCheckBox.SearchElement_Tick(Object source, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
------------------------------------------------------------------------------------------------------------------

I don't have any key [HKLM\Software\Microsoft\Fusion!EnableLog] in my system.

Please suggest me how to overcome this proble to get controls.

Thanks,
Sachin

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Ranorex Spy gave Unhandled exception.

Post by Support Team » Mon Aug 24, 2009 12:14 pm

Hi Sachin,

Unfortunately, Ranorex V2.1.3 has an unwanted dependency on the .NET 3.0 Framework when automating .NET Windows Forms controls. This dependency will be removed again in the next service release. Meanwhile, please install the .NET 3.0 Framework or higher!

Download .NET Framework 3.5 SP1 from here:
http://www.microsoft.com/downloads/deta ... laylang=en

Regards,
Alex
Ranorex Support Team
.
Image

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Ranorex Spy gave Unhandled exception.

Post by Support Team » Tue Aug 25, 2009 11:01 am

Please upgrade to Ranorex V2.1.4 which fixes this bug:
http://www.ranorex.com/download.html

Regards,
Alex
Ranorex Support Team
.
Image