make it Stop Loading stuff from other directories

make it Stop Loading stuff from other directories

I have a the following command line and error message, It can be seen that the reporting mechanism has been told nothing about that directory or file, so why is it trying to load it ?

C:\Program Files\NCover>"C:\Program Files\NCover\NCover.Reporting.exe" F:\Control\BuildLogs\CoverageMerged.xml //p "Merged Overnight" //r "Summary" //rf "html" //so "CoveragePercentageDescending" //sct SymbolCoverage:40.0 //op "F:\Control\BuildLogs" //w "C:\Program Files\NCover" NCover Reporting Complete Trial v3.0.18 x86 (Administrator) Merging and Reporting for NCover Copyright (c) 2007 - 2009 Gnoso Inc. http://www.ncover.com

-- Top-level exception (System.UnauthorizedAccessException) Access to the path 'F:\Control\sorttable.js' is denied. -- Stack Trace at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, I nt32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions o ptions, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.WriteAllBytes(String path, Byte[] bytes) at NCover.Framework.Reports.ReportHelper.WriteResourceToDisk(String resource, String path) at NCover.Framework.Reports.ReportHelper.CopyResources(String path, IReportWr iter reportWriter) at NCover.Framework.Reports.ReportHelper.CreateHtmlFileReport(IReportWriter r eportWriter, ICoverageReportSettings settings, String fileName, ICoverageView co verageModel) at NCover.Framework.Reports.ReportHelper.CreateHtmlFileReport(ICoverageReport Settings settings, String fileName, ICoverageView coverageModel) at NCover.Framework.Reports.ReportingProcessor.Process() at NCover.Reporting.ReportMain.Main(String[] args)


RE: make it Stop Loading stuff from other directories

It appears that the documentation for the //OP is not OutputPath, But OutputFullPathAndFileName This makes it work and uses the correct path, and does not try to overwrite other files.. Well done that documentary


RE: make it Stop Loading stuff from other directories

3.0.20 should have a fix for that bug