Unable to find DLL RanorexCore.dll

Class library usage, coding and language questions.
John Daughety
Posts: 1
Joined: Mon Apr 30, 2007 10:12 pm
Location: USA

Unable to find DLL RanorexCore.dll

Post by John Daughety » Mon Apr 30, 2007 10:20 pm

I just downloaded version 1.1.0, and am using VS2005 and C# project. I added a reference to RanorexNet.dll, in its default location on the C drive, but when I run my simple test app that calls Application.FindFormTitle() I get the exception in the title, which appears to be thrown when Ranorex is getting the sleep time. After adding a reference I also added the "using Ranorex" instruction at the beginning of my class file.

I tried adding RanorexCore.dll as a reference to my project but got an error that it could not be added - make sure it is accessible, a valid assembly or COM component. Can anyone help with this configuration issue? Thanks very much.

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Mon Apr 30, 2007 10:35 pm

RanorexCore is a native C++ library, unmanaged code so you cannot reference it. It should be in the same directory as RanorexNet.

Or you can copy the RanorexCore.dll into the Windows\System32 directory.

Jenö
Ranorex Team

JP
Posts: 4
Joined: Mon Sep 01, 2008 11:32 pm

Post by JP » Tue Sep 02, 2008 1:24 am

I've the same problem:

Code: Select all

A reference to  ..\RanorexCore.dll could not be added. Please make sure that the file is accesible, and that it is a valid assembly or COM component.
I already have copied the .dll to Windows\System32 and i couldn't make the reference to my project.

Thank's for your support.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Post by Support Team » Tue Sep 02, 2008 7:57 am

Once again:
You can't add a reference to the RanorexCore.dll in a .NET project as the RanorexCore.dll is a native (not .NET) DLL.

However, you can add the RanorexCore.dll as a file to your project and set the following properties:
Build Action = None
Copy to output directory = Always

This way the RanorexCore.dll will be copied to the output directory of your project.

Regards,
Alex
Ranorex Support Team

JP
Posts: 4
Joined: Mon Sep 01, 2008 11:32 pm

Post by JP » Tue Sep 02, 2008 7:20 pm

Yep.. you was right.. i did that and the problem has gone.

Thank's for your help.