Ranorex.Controls causes Warnings

Bug reports.
Geci
Posts: 15
Joined: Fri Sep 06, 2013 1:16 pm

Ranorex.Controls causes Warnings

Post by Geci » Mon Aug 01, 2016 12:59 pm

Hello,

with Ranorex 6.0.0 and 6.0.1 we got following Warning:
The primary reference "Ranorex.Controls" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "Ranorex.Controls" or retarget your application to a framework version which contains "System.Runtime, Version=2.6.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
This warning causes build problems in out solution. Is this "bug" known?

Best regards
GeCi

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

Re: Ranorex.Controls causes Warnings

Post by Support Team » Tue Aug 02, 2016 3:22 pm

Hello Geci,

There seems to be a general issue with the installation of the .NET framework. I would suggest doing a new installation of the .NET framework and Ranorex Studio. Please follow the below-mentioned steps.
  • Completely uninstall Ranorex and all installations of the .NET framework
  • Reboot the machine
  • Install the .NET framework, [1][2]
  • Reboot the machine
  • Install all Microsoft Windows updates
  • Install Ranorex 6.0.1 again
[1]: http://www.microsoft.com/download/en/de ... n&id=17718
[2]: https://www.microsoft.com/en-US/downloa ... x?id=30653

Please do let me know if this resolves the issue.

Sincerely,
Johannes
.
Image

Geci
Posts: 15
Joined: Fri Sep 06, 2013 1:16 pm

Re: Ranorex.Controls causes Warnings

Post by Geci » Tue Aug 02, 2016 7:37 pm

This is not easy because the problem is on several machines (pc's and buildserver). The problem is also on pc's without ranorex installation.

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

Re: Ranorex.Controls causes Warnings

Post by Support Team » Wed Aug 03, 2016 6:54 am

Hi Geci,

May I ask why you referenced Ranorex.Controls.dll to your project? Generally, this shouldn't be necessary and is not recommended.

Sincerely,
Johannes
.
Image

Geci
Posts: 15
Joined: Fri Sep 06, 2013 1:16 pm

Re: Ranorex.Controls causes Warnings

Post by Geci » Sun Aug 07, 2016 9:49 am

You are right. It is not necessary to reference this dll. We have the Ranorex project in our solution. If i open the Ranorex project with Ranorex, Ranorex add dlls automatic (for example all Plugin dlls). Therefore i added all Ranorex dlls to the project.

Sincerely
Geci

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

Re: Ranorex.Controls causes Warnings

Post by Support Team » Mon Aug 08, 2016 10:11 am

Hi Geci,

Thank you for your response.

In this case, it should work for you if you remove the reference to this dll. If there are any other issues, please don't hesitate to ask.

Sincerely,
Johannes
.
Image