I've recently upgraded from 2.3.9 to 3.3.1. I just opened the solution, fixed a few lines and everythings worked out of the box - very cool

When my first Project run through and displayed the Report I tried File > Save As to save it to a different location. I just browsed there and hit "Speichern". I got the following Error message
The Exception:Can't save file CreditSystem_20120717_101319.rxzlog under C:\ecue\QA.
Choose another file name or check if the directory exists and that
you have write permission in that path and file. (maybe a write protection problem?)
It generates a file "CreditSystem_20120717_101319.rxzlog" but it is empty.ICSharpCode.SharpZipLib.Zip.ZipException: Entry size/stream size mismatch
bei ICSharpCode.SharpZipLib.Zip.ZipFile.AddEntry(ZipFile workFile, ZipUpdate update)
bei ICSharpCode.SharpZipLib.Zip.ZipFile.RunUpdates()
bei ICSharpCode.SharpZipLib.Zip.ZipFile.CommitUpdate()
bei Ranorex.Report.Zip(String xmlReportFileName, Stream zipReportFileStream)
bei Ranorex.Report.CopyToFileOrFileStream(String sourceReportFileName, String destinationReportFileName, Stream fileStream)
bei Ranorex.Addins.ReportViewPrimaryViewContent.Save(OpenedFile file, Stream stream)
bei ICSharpCode.SharpDevelop.OpenedFile.SaveCurrentViewToStream(Stream stream)
bei ICSharpCode.SharpDevelop.OpenedFile.SaveToDisk()
bei ICSharpCode.SharpDevelop.FileServiceOpenedFile.SaveToDisk()
bei ICSharpCode.SharpDevelop.OpenedFile.SaveToDisk(String newFileName)
bei ICSharpCode.Core.FileUtility.ObservedSave(NamedFileOperationDelegate saveFileAs, String fileName, String message, FileErrorPolicy policy)
When I choose File > Save As and switch from "Ranorex Commpressed Report (*.rxzlog)" (oh btw it should read Compressed, right?) to "Ranorex Report (*.rxlog)" then it works.
I use a custom XSL stylesheet, but uncommenting that doesn't help.
Report setup is done by
Code: Select all
String dateString = System.DateTime.Now.ToString("yyyyMMdd_HHmmss");
String logFileNamePrefix = Assembly.GetCallingAssembly().ManifestModule.Name.Replace(".exe", "");
string logFileName = logFileNamePrefix + "_" + dateString + ".rxlog";
// set a custom stylesheet for the default XML report
XmlLogger.SetReportStylesheetFile("Modules\\CustomStylesheet.xsl");
// append to an existing file with the same name
Report.Setup(ReportLevel.Debug, logFileName, true);
best regards,
Björn