Upgrading to 9.3.1 with several agents

Best practices, code snippets for common functionality, examples, and guidelines.
sdrx
Posts: 17
Joined: Tue Jan 29, 2019 10:15 am

Upgrading to 9.3.1 with several agents

Post by sdrx » Tue Apr 28, 2020 3:06 pm

Hello there, we have several agents currently running fine with everyone's Ranorex version at 9.2 or 9.2.1. I upgraded my local version to 9.3.1 today and can no longer run via the agents.

Is there something that needs done agent-side to allow these to run? And will that impact those on 9.2/9.2.1?

Error below from the agent (I have 'XXX' some of the company specific data). Also; both of those pre-requisites are installed:

Code: Select all

Test execution fatal crash 


 Test executable crashed with unhandled exception.

 Please ensure all required prerequisites are installed:
 - .Net Framework 4.5
 - VC++ Redistributable (2017)

 For more information visit: https://www.ranorex.com/help/v9.3/xcopy-deployment



  
 System.TypeInitializationException: The type initializer for 'Ranorex.Core.Configuration' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Ranorex.Core.Injection, Version=9.3.1.0, Culture=neutral, PublicKeyToken=b798506b574ebc9a' or one of its dependencies. The system cannot find the file specified.
 at Ranorex.Libs.CoreTypes.LoadTypeImpl(String typeString, Boolean throwIfTypeNotfound)
 at Ranorex.Libs.CoreTypes.<>c__DisplayClass48_0.b__0(String s)
 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
 at Ranorex.Libs.CoreTypes.LoadType(String typeString, Boolean throwIfTypeNotfound)
 at Ranorex.Libs.CoreTypes.<>c.<.cctor>b__12_0()
 at System.Lazy`1.CreateValue()
 at System.Lazy`1.LazyInitValue()
 at System.Lazy`1.get_Value()
 at Ranorex.Libs.CoreTypes.IsCompressedImage(Type targetType)
 at Ranorex.Libs.ValueConverterImpl.ToString(Object value)
 at Ranorex.Core.Configuration.ConfigurationParam.ToString()
 at Ranorex.Core.Configuration.ConfigurationParam.ToXmlNode()
 at Ranorex.Core.Configuration.CustomConfigurationParam.Clone()
 at Ranorex.Core.Configuration.RegisterInternal(CustomConfigurationParam newParam)
 at Ranorex.Core.Configuration.Register(CustomConfigurationParam newParam)
 at Ranorex.Core.DefaultConfiguration.RegisterCustomCoreParams()
 at Ranorex.Core.Configuration..cctor()
 --- End of inner exception stack trace ---
 at Ranorex.Core.Configuration.get_Current()
 at Ranorex.Core.Remote.Service.RemotePluginService.<>c.b__50_0()
 at Ranorex.Core.Utils.Xml.ConfigStringStore.ValidateParamExists(Func`1 accessConfig, CaseInsensitiveString paramName)
 at Ranorex.Core.Utils.Xml.ConfigStringStore..ctor(Func`1 accessConfig, CaseInsensitiveString configParamName)
 at Ranorex.Core.Remote.Service.RemotePluginService.CreateService()
 at Ranorex.Core.Remote.Service.RemotePluginService.get_Instance()
 at Ranorex.Core.Reporting.RootActivity.EndpointInfoFactory.CreateNew()
 at Ranorex.Core.Reporting.ActivityStack.ClearInternal()
 at Ranorex.Core.Reporting.ActivityStack..ctor()
 at Ranorex.Core.Reporting.ActivityStack.GetInstance(Thread thread)
 at Ranorex.Bootstrapper.<>c.b__6_0(IServiceRegistry r)
 at Ranorex.Bootstrapper.SetupStandardModule(Boolean& isModuleSetup, Action`1 register)
 at Ranorex.Bootstrapper.SetupCore()
 at Ranorex.TestingBootstrapper.SetupCore()
 at __RxMain.__RxProgram.RanorexInit() in C:xxx\xxx\xxx\obj\Debug\__RxPrograms.g.cs:line 44
 at __RxMain.__RxProgram.Main(String[] args) in C:xxx\xxx\xxx\obj\Debug\__RxPrograms.g.cs:line 30  
Thanks in advance!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6036
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Upgrading to 9.3.1 with several agents

Post by odklizec » Tue Apr 28, 2020 8:24 pm

Hi,

I’m afraid, that once you updated to newest version, you must update Ranorex agents as well. You can’t use newest version with old agent. In other words, everyone must use the same version of Ranorex Studio and agents.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration