ReportEnvironment.GetDependentFiles() crashs on Win10

Class library usage, coding and language questions.
bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

ReportEnvironment.GetDependentFiles() crashs on Win10

Post by bkruse » Tue May 23, 2017 3:35 pm

Hi,

this Ranorex 4 application was running fine on Windows 7. Compiled also on Win7.
We use our own Logging-class, which implements IReportLogger.

Code: Select all

 Report.AttachLogger(Log.ReportLogger);
bekannt gemacht wurde.

The same application basically works on a new machine (Win 10). But it crashes on this call:

Code: Select all

IList<String> reportFiles = TestReport.ReportEnvironment.GetDependentFiles();
Unbehandelte Ausnahme: System.MissingMethodException: Methode nicht gefunden: "System.Collections.Generic.IList`1<System.String> Ranorex.Core.Reporting.ReportEnvironment.GetDependentFiles()".
bei ButlerProGlobal.Utility.moveLog()
bei Butler_PRO_Testsuite.Program.Main(String[] args) in c:\svn\PRO_Ranorex4_next\Butler PRO Testsuite\Butler PRO Testsuite\Program.cs:Zeile 76.
Ranorex 4 is old, correct.
Also interesting, that compiling it using Win10, it works fine. No exception.

Is there something we can do to make it work on Win10 using Win7 for compilation?

Viele Grüße,
Björn
Last edited by bkruse on Tue May 23, 2017 3:56 pm, edited 1 time in total.

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: ReportEnvironment.GetDependentFiles() crashs on Win10

Post by krstcs » Tue May 23, 2017 3:43 pm

Please post in English. Even though Ranorex is an Austrian company, they manage the forums in English only, and ask that we only post in English so everyone can understand.

Also, Ranorex 4.X.X is no longer supported (and hasn't been for a VERY long time). Please updated to a current version (7.0.1 and 6.2.1 are currently supported) and try again. You can use the Trial version if needed to check if your functionality is working in the new version and then you will have your answer.
Shortcuts usually aren't...

bkruse
Posts: 39
Joined: Tue Jul 20, 2010 12:19 pm

Re: ReportEnvironment.GetDependentFiles() crashs on Win10

Post by bkruse » Tue May 23, 2017 4:03 pm

You are right, sorry. Corrected.
As you cannot install Ranorex 4 and 7 besides, we did not try this yet.
Will force this and report again if still persists.

Thanks and Bests, Björn