How to run the exe generated by ranorex on other PC

Best practices, code snippets for common functionality, examples, and guidelines.
dpalazolo
Posts: 1
Joined: Thu Jul 23, 2015 6:59 pm

Re: How to run the exe generated by ranorex on other PC

Post by dpalazolo » Thu Jul 23, 2015 7:11 pm

Hello,

So I'm getting the same error when trying to run my executable on another machine:


Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'Ranorex.Core, Version=5.4.0.24580, Culture=neutral, PublicKeyToken=b79850
6b574ebc9a' or one of its dependencies. The system cannot find the file specifie
d.
at TestSuite.Program.Main(String[] args)


I copied the "\Ranorex 5.4\Bin\" to "Program Files (x86)" on the target machine. I ran the Ranorex.Licensing.exe to connect to our lic server and it required .Net if I remember correctly, which I installed and then properly connected to our lic server. When I run the exe it is still looking for the Ranorex.Core.dll. Any ideas?

Thanks

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

Re: How to run the exe generated by ranorex on other PC

Post by Support Team » Fri Jul 24, 2015 1:52 pm

Hello dpalazolo,

If Ranorex is not installed on the machine you have to copy the Ranorex DLL's, which are located in the BIN folder into the same directory where your test executable is.
It will not work when copying the files to the "Program Files (x86)".

Regards,
Bernhard
.
Image