We have updated Ranorex to 8.2.0 version on 2 Windows 10 computers.
Since that, launching tests from a mapped drive (where our files are stored) just won't work, even after aving dowgraded to 8.1.2 version.
This does not depend on a file, we are facing this issue with all the files that are placed on mapped drive.
After digging around, I found that opening the file file with the UNC path (\\server\foler) will work and launch the tests correctly.
Launching the test by the mapped drive will crash with this error in the logs :
Code: Select all
11:00:58.642|FATAL|Ranorex.Tools.Program|Failed to execute assembly 'V:\Commun\Test&Validation\Automatisation\PIH\CasTest8.1.2\CasTest8.1.2\bin\Debug\CasTest8.1.2.exe'. System.IO.FileLoadException: Impossible de charger le fichier ou l'assembly 'file:///V:\Commun\Test&Validation\Automatisation\PIH\CasTest8.1.2\CasTest8.1.2\bin\Debug\CasTest8.1.2.exe' ou une de ses dépendances. L'opération n'est pas prise en charge. (Exception de HRESULT : 0x80131515)
Nom de fichier: 'file:///V:\Commun\TestValidation\Automatisation\PIH\CasTest8.1.2\CasTest8.1.2\bin\Debug\CasTest8.1.2.exe' --- System.NotSupportedException: Tentative de chargement d'un assembly à partir d'un emplacement réseau qui aurait entraîné l'utilisation de l'assembly en mode Bac à sable (sandbox) dans les versions antérieures du .NET Framework. Cette version du .NET Framework n'activant pas la stratégie CAS par défaut, ce chargement peut être dangereux. Si ce chargement n'est pas destiné à utiliser l'assembly en mode Bac à sable (sandbox), activez le commutateur loadFromRemoteSources. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkId=155569.
à System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
à System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityCheck
We also tested launching test from a non upgraded 8.0.1 Ranorex version (Windows 7 PC) from the same location and there is no problem.
How can I proceed to make it work again ?
If you need more info, don't hesitate to ask
Best regards