Ticket #373 (closed: fixed)
Saving data from Ecosim plot
Reported by: | villyc | Owned by: | administrator |
---|---|---|---|
Priority: | normal | Milestone: | Ecopath 6: build 6.0.7 |
Component: | Ecosim | Version: | |
Severity: | crash | Keywords: | |
Cc: |
Description
I tried to save the 8 ecosim plots from a run. Getting the error
Access to the path c:\EwE6-Simplot_annual_biomass.csv' is denied
This is not where I try to save the data to, and there's no reason why it shouldn't be able to write to c:\
Details are:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
System.UnauthorizedAccessException?: Access to the path 'C:\EwE6-Simplot_annual_biomass.csv' is denied.
at System.IO.Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream?.Init(String path, FileMode? mode, FileAccess? access, Int32 rights, Boolean useRights, FileShare? share, Int32 bufferSize, FileOptions? options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream?..ctor(String path, FileMode? mode, FileAccess? access, FileShare? share, Int32 bufferSize, FileOptions? options)
at System.IO.StreamWriter?.CreateFile?(String path, Boolean append)
at System.IO.StreamWriter?..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter?..ctor(String path, Boolean append)
at ScientificInterface?.Ecosim.EcosimOutputPlots?.SaveDataToFile?(String fName, Boolean SaveYearly?, Single[,]& data, String& mdlDetails, String& gpNames)
at ScientificInterface?.Ecosim.EcosimOutputPlots?.SaveOutputToFile?(String strSelectedDir, Boolean saveYearly, Int32 iPlot)
at ScientificInterface?.Ecosim.EcosimOutputPlots?.btnSave_Click(Object sender, EventArgs? e)
at System.Windows.Forms.Control.OnClick?(EventArgs? e)
at System.Windows.Forms.Button.OnClick?(EventArgs? e)
at System.Windows.Forms.Button.OnMouseUp?(MouseEventArgs? mevent)
at System.Windows.Forms.Control.WmMouseUp?(Message& m, MouseButtons? button, Int32 clicks)
at System.Windows.Forms.Control.WndProc?(Message& m)
at System.Windows.Forms.ButtonBase?.WndProc?(Message& m)
at System.Windows.Forms.Button.WndProc?(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow?.OnMessage?(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow?.WndProc?(Message& m)
at System.Windows.Forms.NativeWindow?.Callback(IntPtr? hWnd, Int32 msg, IntPtr? wparam, IntPtr? lparam)
Loaded Assemblies
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
EwE6
Assembly Version: 6.0.3.7
Win32 Version: 1.0.0.0
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/EwE6.exe
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
WeifenLuo?.WinFormsUI.Docking
Assembly Version: 2.1.2734.23473
Win32 Version: 2.1.0.0
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/WeifenLuo.WinFormsUI.Docking.DLL
EwEPlugin
Assembly Version: 1.0.1.3
Win32 Version: 1.0.1.2
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/EwEPlugin.DLL
EwECore
Assembly Version: 6.0.3.7
Win32 Version: 1.0.0.0
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/EwECore.DLL
EwEUtils
Assembly Version: 6.0.3.3
Win32 Version: 1.0.1.14
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/EwEUtils.DLL
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
SAUPUtil
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/SAUPUtil.DLL
Microsoft.VisualBasic?
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
EwECustomPlugins
Assembly Version: 2.0.1.1
Win32 Version: 1.0.0.0
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/EwECustomPlugins.DLL
EwENetworkAnalysis
Assembly Version: 2.0.1.2
Win32 Version: 2.0.1.1
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/EwENetworkAnalysis.DLL
SourceGrid2
Assembly Version: 2.0.3.1
Win32 Version: 2.0.3.1
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/SourceGrid2.DLL
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/SourceLibrary.DLL
Assembly Version: 5.0.8.21916
Win32 Version: 5.0.8.21916
CodeBase?: file:///C:/Program%20Files/Ecopath%20with%20Ecosim%206/ZedGraph.DLL
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices?
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
rlyqluca
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase?: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
JIT Debugging
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging=true />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
has duplicate #361