Page 1 of 2

Unable to launch Ranorex Studio

Posted: Wed Aug 30, 2017 3:46 pm
by user_one
Hi

I have installed the latest trial version (7.1) but when I go to launch Ranorex Studio nothing happens.

If I check the logs I can see: INFO|Ranorex.Core.ElementEngine|Element engine starting up...
I can also see the following in the Windows Logs:
.NET Runtime Optimization Service (clr_optimization_v4.0.30319_32) - Failed to compile C:\Program Files (x86)\Ranorex 7.1\RanorexStudio\bin\RanorexStudio.exe because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).

If I try launching Ranorex Recorder I at least get the windows error saying: Ranorex recorder has stopped working.
If I then look in the Event Viewer I can see the following:
Faulting application name: Ranorex.Recorder.exe, version: 7.1.1.0, time stamp: 0x598d964d
Faulting module name: KERNELBASE.dll, version: 6.1.7601.23864, time stamp: 0x595fa988
Exception code: 0xe0434352
Fault offset: 0x000000000001a06d
Faulting process id: 0x1d8
Faulting application start time: 0x01d3219de0d9c434
Faulting application path: C:\Program Files (x86)\Ranorex 7.1\Bin\x64\Ranorex.Recorder.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 210e0a65-8d91-11e7-9f7d-02004e435049

Does anyone have any ideas on how to get round this?

**Edited to add that I'm running 64-bit Windows 7 machine.**

Re: Unable to launch Ranorex Studio

Posted: Thu Aug 31, 2017 2:50 pm
by McTurtle
Hello user_one,

It looks like something went wrong during your installation. Have you already tried to completely uninstall Ranorex and all dependencies and then install it again by using the exe-file?

The installer can be downloaded from the download archive: Download Archive

Regards,
McTurtle

Re: Unable to launch Ranorex Studio

Posted: Fri Sep 01, 2017 3:02 pm
by user_one
I have tried unistalling and re-installing multiple times. I have tried using the zipped version and the non-zipped versions but it's the same result.

I haven't tried re-installing any of the pre-reqs because I need these to run other things and that would cost me too much time.

Re: Unable to launch Ranorex Studio

Posted: Tue Sep 05, 2017 12:36 pm
by McTurtle
Hello user_one,

Microsoft has a .NET Framework Repair Tool. I have actually never tried it. But you could try it: Microsoft .NET Framework Repair Tool

If this does not help to resolve the issue, then I think that you will have to try reinstalling the dependencies.
Furthermore, does the issue appear on any other computer?

Regards,
McTurtle

Re: Unable to launch Ranorex Studio

Posted: Wed Sep 06, 2017 1:03 pm
by Vaughan.Douglas
user_one wrote:I have tried unistalling and re-installing multiple times. I have tried using the zipped version and the non-zipped versions but it's the same result.

I haven't tried re-installing any of the pre-reqs because I need these to run other things and that would cost me too much time.
Ranorex 7.1 requires Microsoft Visual C++ 2015. We've had many users face this issue in Windows 7 due to the way our folks packaged the installer for distribution.

Re: Unable to launch Ranorex Studio

Posted: Thu Sep 07, 2017 1:02 pm
by user_one
I have spent the morning making sure I meet all the requirement specs and I have everything installed.
I have .Net Framework 4.7, Visual C++ 2015 (x86) and Visual C++ 2015 (x64).

I still have the same problems.

When I launch Studio, I can see the following in the logs: | INFO|Ranorex.Core.ElementEngine|Element engine starting up...
But nothing further happens.

If I launch the others I can see the following in the logs (this is for Ranorex Spy):
2017-09-07 12:51:36.052|DEBUG|Ranorex.Core.Config.SolutionSettingsContext|Search solution config file in C:\Program Files (x86)\Ranorex 7.1\Bin\x64\.
2017-09-07 12:51:36.084| INFO|Ranorex.Core.Config.SolutionSettingsContext|Register solution config file (none)
2017-09-07 12:51:36.099| INFO|Ranorex.Core.PluginManager|Loading default plugins...
2017-09-07 12:51:36.240|DEBUG|Ranorex.Core.PluginManager|Found 1 plugins in assembly 'Ranorex.Plugin.Win32, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a'.
2017-09-07 12:51:36.240|DEBUG|Ranorex.Core.PluginManager|Loading plugin 'Win32'...
2017-09-07 12:51:36.255| INFO|Ranorex.Core.ElementEngine|Element engine starting up...
2017-09-07 12:51:36.552|ERROR|Ranorex.Core.PluginManager|Failed to load default plugins. Please reinstall Ranorex. Ranorex.Core.RanorexCoreException: Failed to load plugins from assembly 'Ranorex.Plugin.Win32, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a'. ---> Ranorex.Core.RanorexCoreException: Failed to initialize plugin 'win32'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Font 'Verdana' does not support style 'Regular'.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.SerializationInvoke(IRuntimeMethodInfo method, Object target, SerializationInfo info, StreamingContext& context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Resources.ResourceReader.DeserializeObject(Int32 typeIndex)
at System.Resources.ResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
at System.Resources.ResourceReader.LoadObject(Int32 pos)
at System.Resources.ResourceReader.ResourceEnumerator.get_Entry()
at System.Resources.ResourceReader.ResourceEnumerator.get_Current()
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet)
at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture)
at Infralution.Licensing.EvaluationDialog.InitializeComponent()
at Infralution.Licensing.EvaluationDialog..ctor()
at Infralution.Licensing.EvaluationDialog..ctor(String productName, String evaluationPassword, AuthenticatedLicense limitedTrial)
at Ranorex.Core.ElementEngine.CheckTrial(Boolean showDialogs, AuthenticatedLicense nodeLockedLicense, Boolean isLimitedTrial)
at Ranorex.Core.ElementEngine.CheckLicense(Boolean showDialogs)
at Ranorex.Core.ElementEngine.AssertLicense()
at Ranorex.Core.ElementEngine..ctor()
at Ranorex.Core.ElementEngine.get_Instance()
at Ranorex.Core.FlavorPlugin.Initialize()
at Ranorex.Plugin.Win32Plugin.Initialize()
at Ranorex.Core.PluginManager.Load(Plugin plugin)
--- End of inner exception stack trace ---
at Ranorex.Core.PluginManager.Load(Plugin plugin)
at Ranorex.Core.PluginManager.LoadPluginsWithDependencies(IList`1 pluginsToLoad)
at Ranorex.Core.PluginManager.LoadPluginsFromAssembly(Assembly assembly)
--- End of inner exception stack trace ---
at Ranorex.Core.PluginManager.LoadPluginsFromAssembly(Assembly assembly)
at Ranorex.Core.PluginManager.LoadDefaultPlugins(Boolean nonBlocking)
The main part that stands out to me is:
2017-09-07 12:51:36.552|ERROR|Ranorex.Core.PluginManager|Failed to load default plugins. Please reinstall Ranorex. Ranorex.Core.RanorexCoreException: Failed to load plugins from assembly 'Ranorex.Plugin.Win32, Version=7.1.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a'. ---> Ranorex.Core.RanorexCoreException: Failed to initialize plugin 'win32'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Font 'Verdana' does not support style 'Regular'.
If I look I look in Event View I can see the following error:
Application: Ranorex.Spy.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(System.Drawing.FontFamily, Single, System.Drawing.FontStyle, System.Drawing.GraphicsUnit, Byte, Boolean)
at System.Drawing.Font..ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Exception Info: System.Reflection.TargetInvocationException
at System.RuntimeMethodHandle.SerializationInvoke(System.IRuntimeMethodInfo, System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext ByRef)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(System.Runtime.Serialization.ObjectHolder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
at System.Resources.ResourceReader.DeserializeObject(Int32)
at System.Resources.ResourceReader.LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
at System.Resources.ResourceReader.LoadObject(Int32)
at System.Resources.ResourceReader+ResourceEnumerator.get_Entry()
at System.Resources.ResourceReader+ResourceEnumerator.get_Current()
at System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)
at System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)
at System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)
at System.ComponentModel.ComponentResourceManager.ApplyResources(System.Object, System.String, System.Globalization.CultureInfo)
at Infralution.Licensing.EvaluationDialog.InitializeComponent()
at Infralution.Licensing.EvaluationDialog..ctor()
at Infralution.Licensing.EvaluationDialog..ctor(System.String, System.String, Infralution.Licensing.AuthenticatedLicense)
at Ranorex.Core.ElementEngine.CheckTrial(Boolean, Infralution.Licensing.AuthenticatedLicense, Boolean)
at Ranorex.Core.ElementEngine.CheckLicense(Boolean)
at Ranorex.Core.ElementEngine.AssertLicense()
at Ranorex.Core.ElementEngine..ctor()
at Ranorex.Core.ElementEngine.get_Instance()
at Ranorex.Core.FlavorPlugin.Initialize()
at Ranorex.Plugin.Win32Plugin.Initialize()
at Ranorex.Core.PluginManager.Load(Ranorex.Core.Plugin)

Exception Info: Ranorex.Core.RanorexCoreException
at Ranorex.Core.PluginManager.Load(Ranorex.Core.Plugin)
at Ranorex.Core.PluginManager.LoadPluginsWithDependencies(System.Collections.Generic.IList`1<PluginInfo>)
at Ranorex.Core.PluginManager.LoadPluginsFromAssembly(System.Reflection.Assembly)

Exception Info: Ranorex.Core.RanorexCoreException
at Ranorex.Core.PluginManager.LoadPluginsFromAssembly(System.Reflection.Assembly)
at Ranorex.Core.PluginManager.LoadDefaultPlugins(Boolean)

Exception Info: Ranorex.Core.RanorexCoreException
at Ranorex.Core.PluginManager.LoadDefaultPlugins(Boolean)
at Ranorex.Core.PluginManager.LoadDefaultPluginsSuppressible(Boolean)
at Ranorex.Core.Configuration.get_Item(Ranorex.Core.CaseInsensitiveString)
at Ranorex.Core.Configuration.Get[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Ranorex.Core.CaseInsensitiveString)
at Ranorex.Controls.Telemetry.TelemetryClientImpl..ctor()
at Ranorex.Controls.Telemetry.TelemetryClient.Create()
at Ranorex.Tools.Program.Main()
If I look at the event viewer when running Studio I see the following:
.NET Runtime Optimization Service (clr_optimization_v4.0.30319_64) - Failed to compile C:\Program Files (x86)\Ranorex 7.1\RanorexStudio\bin\RanorexStudio.exe because of the following error: Strong name validation failed. (Exception from HRESULT: 0x8013141A).
It all looks to be exactly the same errors I was originally having.

Re: Unable to launch Ranorex Studio

Posted: Thu Sep 07, 2017 3:14 pm
by krstcs
Have you installed .NET 4.0? I believe it is required for Ranorex due to SharpDevelop 4's requirements.

My understanding is that 4.0 is specifically required for installation (notice the error talks about 4.0.3), but you CAN install higher versions if you want. But I might be wrong...


EDIT TO ADD: Also, Ranorex Studio will not recognize 4.7, and you won't get code completion on versions higher than 4.5, from my understanding.

Re: Unable to launch Ranorex Studio

Posted: Thu Sep 07, 2017 3:42 pm
by user_one
krstcs wrote:Have you installed .NET 4.0? I believe it is required for Ranorex due to SharpDevelop 4's requirements.

My understanding is that 4.0 is specifically required for installation (notice the error talks about 4.0.3), but you CAN install higher versions if you want. But I might be wrong...


EDIT TO ADD: Also, Ranorex Studio will not recognize 4.7, and you won't get code completion on versions higher than 4.5, from my understanding.
Thanks, I will give that a try.
Did I miss something in the pre-reqs page that says don't use 4.7?

Re: Unable to launch Ranorex Studio

Posted: Thu Sep 07, 2017 3:56 pm
by krstcs
Let me clarify:

You can USE 4.7, but you won't get autocomplete and you may get errors and warnings when compiling in Ranorex Studio. RX is built on SharpDevelop 4, which doesn't support anything higher than 4.5 (to my understanding) for autocomplete and error checking.

I find it better to stay on 4.5.2 when using Ranorex Studio, but that's me.

Re: Unable to launch Ranorex Studio

Posted: Fri Sep 08, 2017 10:23 am
by user_one
I've tried with multiple different versions of the .net framework.

It's making no difference. Whatever version I have installed I still get the errors which prevent me from being able to launch any of the applications.

Re: Unable to launch Ranorex Studio

Posted: Mon Sep 11, 2017 1:17 pm
by McTurtle
Hello user_one,

I also have 4.5.2 installed. Have you installed .net framework 4.5.2 on your machine? If installing .net framework 4.5.2 does not resolve the issue, then maybe you have larger issues and it would be the most time efficient to re-install your machine.

Regards,
McTurtle

Re: Unable to launch Ranorex Studio

Posted: Tue Sep 12, 2017 9:43 am
by user_one
I'm using my work laptop so unfortunately starting from scratch with the laptop isn't an option. And if I am having these issues then it would be more likely anyone else on the team would have the same problems if we did then decide to try and use Ranorex after the trial.

Re: Unable to launch Ranorex Studio

Posted: Tue Sep 12, 2017 1:15 pm
by Support Team
Hello user_one,

It would be better to handle this issue via email. I believe that our sales engineers will be able to help you with this issue. You can contact them by sending an email to [email protected].

Please do describe your issue and mention that you are currently evaluating Ranorex. A technical engineer will get in contact with you soon thereafter.

I hope this helps.

Sincerely,
Tomaž

Re: Unable to launch Ranorex Studio

Posted: Thu Sep 21, 2017 8:58 am
by user_one
Issue has been sorted now.
It was related to the Fonts. Verdana font has now been uninstalled from my machine and I can launch Ranorex Studio with no problems.

Re: Unable to launch Ranorex Studio

Posted: Thu Jan 11, 2018 5:56 pm
by kshekharkumar
I am trying to open a Ranorex 5.4.3 solution in Ranorex 6.2.1 Studio. I am getting an error - 'You don't have the permission to access file' on the Ranorex solution file.
When I look into event viewer I see log - 'Failed to compile RanorexStudio.exe because of the following error: Strong name validation failed. (Exception from HRESULT:0x8013141A)

It is not specific to any one particular system.

I am trying to upgrade from 5.4.3 to 6.2.1. Let me know if there is a set of steps to follow for the upgrades.

Thanks,
Shekhar