Ranorex recorder query:

Ranorex Spy, Recorder, and Studio.
samu_ranorex
Posts: 3
Joined: Mon Sep 29, 2008 7:50 am

Ranorex recorder query:

Post by samu_ranorex » Tue Sep 30, 2008 9:29 am

I recorded some web actions through Ranorex recorder and then got the c# code generated. Later on I made some modifications to the .cs file and now I want to debug and playback those actions through that code through VSTS. Can anybody tell how to do it.
I tried to do that by following the steps listed below:
1.I copied the code generated from the recording into a console application.
2.Modified the code.
3.Added reference to theRanorexNet.dll (also used the ‘using Ranorex’ statement)
4.Built the solution and ran it.

But it threw an error message stating that ‘system.dllnotfoundException’ occurred in RanorexNet.dll. So, I tried to add reference to the ‘RanorexCore.dll’ but it is not allowing me to add the dll reference.
Can anybody suggest a solution for this problem.

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

Post by Support Team » Tue Sep 30, 2008 12:48 pm

The RanorexCore.dll is a native DLL, so you can't add it to the managed references of your C# project. Just be sure that the RanorexCore.dll and the RanorexSpy.dll are in the output folder of your project, i.e. the folder where your exe file is built to. Then everything should just work fine.

You can ensure that by adding the RanorexCore.dll and RanorexSpy.dll files to your project (Add -> Existing Item...) and set the "Copy to Output Directory" property to "Copy always".

Regards,
Alex
Ranorex Support Team