Using .NET assembly for Reusable functions in Ranorex

Class library usage, coding and language questions.
prashantb
Posts: 9
Joined: Thu Aug 23, 2007 3:59 pm

Using .NET assembly for Reusable functions in Ranorex

Post by prashantb » Thu Sep 27, 2007 8:00 am

Hi,
I have created .NET assembly ("RanorexLibrary.dll") for using reusable functions in the script which has a reference to 'RanorexNet.dll'. I am writing my test scripts in VBScript. Hence I have registered and loaded it in cache using gacutil.exe. But when I am executing my script it gives me following error.

'Could not load file or assembly 'RanorexNet, Version=1.2.0.0, Culture=neutral, PublicKeyToken=24c2d826cd608828' or one of its dependencies. The system cannot find the file specified.'

I have placed RanorexCore.dll in C:\Windows\System32 folder.
Regards,
Prashant Barhate

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Thu Sep 27, 2007 3:28 pm

Please try the following:

Copy your application and the RanorexLibrary.dll into the Bin\Net2.0-Pro directory of the Ranorex installation.
(All needed Ranorex components are in this directory).

Start your application.

Jenö
Ranorex Team