Problem with Ranorex 7.1.1

Ask general questions here.
SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Problem with Ranorex 7.1.1

Post by SanMan » Fri Aug 25, 2017 5:17 am

Hi,

I updated from 7.1.0 to 7.1.1

Build and run project:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Ranorex.Core, Version=7.1.0.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a' or one of its dependencies. The system cannot find the file specified.
at R_Test.Program.Main(String[] args)

What could be the problem here?

SanMan
Posts: 210
Joined: Tue Apr 13, 2010 9:59 am

Re: Problem with Ranorex 7.1.1

Post by SanMan » Fri Aug 25, 2017 10:13 am

This problem is solved. I don't know what happend. Just reboot PC and build few times.

DevinderSodhi
Posts: 6
Joined: Fri Jul 07, 2017 8:09 pm

Re: Problem with Ranorex 7.1.1

Post by DevinderSodhi » Wed Aug 30, 2017 7:18 pm

This is still a problem for me, despite a reboot.

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: Problem with Ranorex 7.1.1

Post by N612 » Wed Aug 30, 2017 8:21 pm

It sounds like the uninstall did not complete properly and remove the old library references since it is still trying to use 7.1.0 libraries. I would uninstall Ranorex, restart my machine, install Ranorex 7.1.1, do a final machine restart for safe measures, and try again.

It is also possible the 7.1.0 libraries are still in your GAC. Check out your GAC and ensure only 7.1.1 libraries exist. You can manually remove old libraries by following this guide.

maese
Posts: 6
Joined: Wed Aug 24, 2016 7:36 am

Re: Problem with Ranorex 7.1.1

Post by maese » Thu Aug 31, 2017 10:18 am

Using gacutil did not solve the problem :cry:
When I uninstall Ranorex 7.1, I have no entries for Ranorex.
After Installing Ranorex 7.1.1, I have the following entires:

Ranorex.Common.Net35, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Core.Injection, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Instrumentation.RawText, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Libs, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Libs.Base, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Libs.WinApi, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Libs.WinForms, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Plugin.WinFormsProxy, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL
Ranorex.Plugin.WpfProxy, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a, processorArchitecture=MSIL

LittlestHobo
Posts: 9
Joined: Tue Jan 31, 2017 6:16 pm

Re: Problem with Ranorex 7.1.1

Post by LittlestHobo » Thu Aug 31, 2017 1:45 pm

To confirm after going from 7.1.0 to 7.1.1 I experienced this issue too:

Cannot intercept exception. Debugged program can not be continued and properties can not be evaluated.
System.IO.FileLoadException: Could not load file or assembly 'Ranorex.Core, Version=7.1.0.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Reboot no joy, will uninstall and reinstall - Just here for reference to say someone else got this.

EDIT: Not sure what resolved it, but i reinstalled Ranorex, then performed a "rebuild Solution" and this started working, strange ive never had to do this before, but every day is a learning experience (And i have a lot to learn!)
Last edited by LittlestHobo on Thu Aug 31, 2017 3:29 pm, edited 1 time in total.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Problem with Ranorex 7.1.1

Post by krstcs » Thu Aug 31, 2017 3:23 pm

You need to check all of your solution files for a reference to "Ranorex.Core, Version=7.1.0.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a". This will usually be in your *.csproj (or *.vbproj?, I don't know, I don't use VB.NET) files. I had to do the same thing when I upgraded because the upgrade process did NOT update that one value correctly. Once I fixed it to point to 7.1.1.0, it stopped throwing the error.

The problem is that the project file still points to the old (7.1.0) Core DLL, which isn't on the system anymore. You just need to point at the new file.
Shortcuts usually aren't...

DevinderSodhi
Posts: 6
Joined: Fri Jul 07, 2017 8:09 pm

Re: Problem with Ranorex 7.1.1

Post by DevinderSodhi » Fri Sep 01, 2017 2:46 pm

Thanks krstcs, and the folks above. You really homed in on the root of the problem, and once I knew that, the rest was cake.

I appreciate the words of wisdom.

maese
Posts: 6
Joined: Wed Aug 24, 2016 7:36 am

Re: Problem with Ranorex 7.1.1

Post by maese » Fri Sep 08, 2017 11:00 am

With the latest version 7.1.2 there is no problem anymore. No manual changes are needed.