Test execution fails to start after upgrade to Windows 10

Bug reports.
kmacharg
Posts: 2
Joined: Thu Jul 30, 2015 3:22 pm

Test execution fails to start after upgrade to Windows 10

Post by kmacharg » Thu Jul 30, 2015 3:28 pm

Running Ranorex 5.4.0.24580
Running Windows 10

Upgraded from windows 8 to windows 10. Now when I attempt to Run a recording I get several hundred errors similar to the one below
The type or namespace name 'Ranorex' could not be found (are you missing a using directive or an assembly reference?) (CS0246)

I have tried rerunning the installer, first doing the repair option then again using the change settings option (though I didn't actually change any settings)

Should I just completely uninstall /reinstall? Will that negatively affect my current test suites?

Thank you

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

Re: Test execution fails to start after upgrade to Windows 10

Post by krstcs » Thu Jul 30, 2015 4:21 pm

Please complete a clean re-install of Ranorex.

1. Uninstall Ranorex.
2. Reboot your computer.
3. Reinstall Ranorex.

This should not affect your test suites.

The issues is that your installation of Windows 10 completely wipes out the library records for Ranorex (and possibly other software) in the Global Assemblies database in the operating system.

You may also need to re-install .NET 3.5 or 4.0 since Windows 10 comes with 4.5 (or 4.6, maybe), but that should be done by Ranorex automatically.
Shortcuts usually aren't...

kmacharg
Posts: 2
Joined: Thu Jul 30, 2015 3:22 pm

Re: Test execution fails to start after upgrade to Windows 10

Post by kmacharg » Thu Jul 30, 2015 7:25 pm

Uninstalling and reinstalling seems to have done the trick.

Thank you for your help

BCTest
Posts: 88
Joined: Tue Jun 03, 2014 10:15 am
Location: Hamburg, Germany

Re: Test execution fails to start after upgrade to Windows 10

Post by BCTest » Thu Nov 10, 2016 8:41 am

krstcs wrote:Please complete a clean re-install of Ranorex.

1. Uninstall Ranorex.
2. Reboot your computer.
3. Reinstall Ranorex.

This should not affect your test suites.

The issues is that your installation of Windows 10 completely wipes out the library records for Ranorex (and possibly other software) in the Global Assemblies database in the operating system.
Hi,
is it possible to restore the missing assemblies via batch or script? We've to reinstall Ranorex on five computer after each cumulative patch of Windows 10. It would be a great easement if we could do this by script.

Regards,
BCTest

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

Re: Test execution fails to start after upgrade to Windows 10

Post by krstcs » Thu Nov 10, 2016 2:36 pm

There should be no need to reinstall Ranorex after Windows 10 patches. I use 10 and have no issues like that.

Are you sure that the installation of .NET worked correctly?


In addition, I would advise against trying to manually restore assembly libraries. My suggestion would be to use Jenkins to manage your remote systems. I have a Jenkins job that manages the install of new versions of Ranorex to all of my remote systems at the same time, and it works wonderfully.
Shortcuts usually aren't...

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

Re: Test execution fails to start after upgrade to Windows 10

Post by Support Team » Thu Nov 10, 2016 2:45 pm

BCTest wrote:is it possible to restore the missing assemblies via batch or script?
You can (re-)install Ranorex using a batch script, see the corresponding user guide section "Silent Installation of Ranorex"

Regards,
Alex
Ranorex Team
.
Image