RanorexCore.dll and DllNotFoundException
Posted: Tue Jun 03, 2008 8:55 am
Hi. I have downloaded Ranorex evaluation version 1.4.0. I opened up the RanorexVS2005Sample2 project, compiled it and tried to run it in debug mode. I then got an DllNotFoundException:
Please also note that I get the very same type of exception when trying to insert code generated from the Ranorex Recorder into one of my Nunit tests....
But instead of getting it from:
Application.SleepTime = sleeptime;
I now get it from:
form = Application.FindFormClassName("OPOS");
Also note that I have tried to reference both the version from:
Net2.0-Pro-Debug\RanorexNet.dll
and
Net2.0-Pro\RanorexNet.dll
I do get the sample project specified to run if I run it in release mode, but I really can't use Ranorex if it doesn't allow me to run code in debug mode...
Is there a simple solution to this problem?
Best regards,
Kim
Code: Select all
System.DllNotFoundException was unhandled
Message="Unable to load DLL 'RanorexCore.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Source="RanorexNet"
TypeName=""
StackTrace:
at Ranorex.NativeMethods.RxSetSleepTime(Int32 sleeptime)
at Ranorex.Application.set_SleepTime(Int32 value)
at RanorexVS2005Sample2.Class1.Main(String[] args) in C:\Program Files\Ranorex 1.4\Samples\RanorexVS2005Sample2\Class1.cs:line 47
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
But instead of getting it from:
Application.SleepTime = sleeptime;
I now get it from:
form = Application.FindFormClassName("OPOS");
Also note that I have tried to reference both the version from:
Net2.0-Pro-Debug\RanorexNet.dll
and
Net2.0-Pro\RanorexNet.dll
I do get the sample project specified to run if I run it in release mode, but I really can't use Ranorex if it doesn't allow me to run code in debug mode...
Is there a simple solution to this problem?
Best regards,
Kim