'Parameter "SearchPaths" has invalid value' Error

Class library usage, coding and language questions.
Sashimi
Posts: 2
Joined: Tue Jan 08, 2013 2:02 am

'Parameter "SearchPaths" has invalid value' Error

Post by Sashimi » Tue Jan 08, 2013 2:51 am

Hello support team,

we are experiencing a strange problem here related to Ranorex with .net framework 4.0 in Windows 7 64-bit OS.

Once we run Ranorex with .net framework 4.0 in Windows xp 32-bit and Windows 7 32-bit, it works well, but after the OS is changed, Ranorex can not compile.

In our project, two 3-party assembly files are referenced, which need the support of .netframework 4.0, If i change Target Framework as .net framework 3.5, some class can not be found even if assembly files is referenced.

The error message is as follows:

Parameter "SearchPaths" has invalid value "{CandidateAssemblyFiles}%3b
%3b
{HintPathFromItem}%3b
{TargetFrameworkDirectory}%3b
{Registry:Software\Microsoft\.NETFramework,v4.0,AssemblyFoldersEx}%3b
%3b
{GAC}%3b
{RawFileName}%3b
bin\Debug\Ranorex.Core.dll". Illegal characters in path. (MSB3248)

The warning message is as follows:

The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. (MSB3644)

Thanks in advance and best regards,
Sashimi Xi

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

Re: 'Parameter "SearchPaths" has invalid value' Error

Post by Support Team » Tue Jan 08, 2013 2:52 pm

Hello,

Which version of Ranorex do you use and which version of the .Net framework is installed?
The .NET Framework 4.0 Extended package is needed, but not installed.
Is the Windows SDK for Windows 7 installed on your system? It could be that the wrong versions of the Visual C++ 2010 Redistributables are installed on your machine.
Please try to uninstall Ranorex and the Visual C++ 2010 Redistributables from your machine. After that please install the SDK and then install Ranorex.
I hope this will help you to solve your issue.

Regards,
Bernhard
.
Image

Sashimi
Posts: 2
Joined: Tue Jan 08, 2013 2:02 am

Re: 'Parameter "SearchPaths" has invalid value' Error

Post by Sashimi » Thu Jan 10, 2013 3:17 am

Hi Support team,

I have upgrade Ranorex to newest verion (4.0.1), this time Ranorex can compile and run without error. Thanks for your great help!

Best Regards,

-Sashimi