Unhandled exception has occured after install it won't open?

Ask general questions here.
jase888
Posts: 5
Joined: Wed Jul 11, 2012 3:13 pm

Unhandled exception has occured after install it won't open?

Post by jase888 » Tue Sep 17, 2013 12:05 pm

Just installed Ranorex 4.0.2 but it comes up stating "unhandled exception has occured" and won't open, it ask to send the report error to Ranorex or exit.

Below is the error report it comes with but I can't make much sense of why its not opening, any ideas?

Thanks


Ranorex Studio Version : 4.0.2.21666
.NET Version : 4.0.30319.1008
OS Version : Microsoft Windows NT 5.1.2600 Service Pack 3
Current culture : English (United Kingdom) (en-GB)
Working Set Memory : 14612kb
GC Heap Memory : 524kb

Unhandled exception terminated RanorexStudio
Exception thrown:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Ranorex.Core.ElementEngine' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Ranorex.Core.WinApi.dll' or one of its dependencies. The specified module could not be found.
at Ranorex.Core.ElementEngine..cctor()
--- End of inner exception stack trace ---
at Ranorex.Core.ElementEngine.set_SepChar(Char value)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at ICSharpCode.SharpDevelop.SplashScreenForm..ctor()
at ICSharpCode.SharpDevelop.SplashScreenForm.ShowSplashScreen()
at ICSharpCode.SharpDevelop.SharpDevelopMain.Run(String[] args)
at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[] args)

---- Recent log messages:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()

---- Post-error application state information:

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

Re: Unhandled exception has occured after install it won't open?

Post by Support Team » Tue Sep 17, 2013 3:55 pm

It seems like an installation issue, i.e. some required files are missing.

Please, make sure that no Ranorex processes are running, then uninstall Ranorex.
Then reboot the machine and install Ranorex again using the "Ranorex-4.0.X.exe" executable.

BTW, the last service release for 4.0 is 4.0.6.

Regards,
Alex
Ranorex Team
.
Image

jase888
Posts: 5
Joined: Wed Jul 11, 2012 3:13 pm

Re: Unhandled exception has occured after install it won't open?

Post by jase888 » Wed Sep 18, 2013 8:34 am

Thanks, I found out what the issue was. The computer didn't have any version of Microsoft C++ installed on it, since installing that it seems to be working fine.