Failure while running test scripts - configuration info.

Ranorex Spy, Recorder, and Studio.
vdoddaguni
Posts: 11
Joined: Mon Apr 11, 2011 9:34 pm

Failure while running test scripts - configuration info.

Post by vdoddaguni » Wed Jun 01, 2011 7:42 pm

Hi

I am getting the following error message while trying to execute a simple click and play script. Can you please let me know what the issue is and how it can be fixed. Are there additional additional configuration setting that needs to be done on my PC.

2011/06/01 13:35:24.994 FAILURE Module Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

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

Re: Failure while running test scripts - configuration info.

Post by Support Team » Fri Jun 03, 2011 12:14 pm

Hi,

You can try to comment out the "<supportedRuntime version="v4.0"/>" option in your "app.config" file in your Ranorex project.
If this doesn't work please provide us more specific information about your test environment.

Regards,
Markus
Ranorex Support Team
.
Image

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

Re: Failure while running test scripts - configuration info.

Post by SanMan » Fri Sep 16, 2011 12:09 pm

Hi,

I have the same issue:

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

I did try to comment out the "<supportedRuntime version="v4.0"/>" but it did not help.

What could be the problem?

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

Re: Failure while running test scripts - configuration info.

Post by Support Team » Fri Sep 16, 2011 1:18 pm

Hi,

Do you have added a config file, as it is explained in the #6 of the general troubleshooting section, to each exe of your projects and test executables?
Check your compile settings and take a look which "Target Framework" you are using?

Kind Regards,
Markus
Ranorex Support Team
.
Image

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

Re: Failure while running test scripts - configuration info.

Post by SanMan » Mon Sep 19, 2011 8:11 am

When I open the solution WinForms test, it works fine when Run Project selected.

If I go to StartWinformsSample.rxrec and select Play, "Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information." error occures.

Compiling: Target Framework: .NET Framework 2.0

------

When Updated from 3.0.5 to 3.1 it works, so problem resolved!