Page 1 of 1

Ranorex recorder query:

Posted: Tue Sep 30, 2008 9:29 am
by samu_ranorex
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.

Posted: Tue Sep 30, 2008 12:48 pm
by Support Team
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