HDD Guardian 0.7.0 error on Windows 10 / 64 bitM

Aug 23, 2016 at 7:25 AM
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:\Program Files (x86)\HDD Guardian\Data\HP-PROBOOK470G3\jaro\settings.xml' 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, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
at hdd_guardian.CustomSettings.SaveTo(String destination)
at hdd_guardian.CustomSettings.Save()
at hdd_guardian.Main.mrcSidePanel_CheckedChanged(Object sender, EventArgs e)
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at hdd_guardian.MimicExplorer.RibbonCheck.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
at hdd_guardian.Main.frmMain_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at hdd_guardian.Main.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: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

hddguardian
Assembly Version: 0.7.0.0
Win32 Version: 0.7.0

CodeBase: file:///C:/Program%20Files%20(x86)/HDD%20Guardian/hddguardian.exe

Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.Win32.TaskScheduler
Assembly Version: 2.5.14.0
Win32 Version: 2.5.14.0

CodeBase: file:///C:/Program%20Files%20(x86)/HDD%20Guardian/Microsoft.Win32.TaskScheduler.DLL

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0 built by: NETFXREL2

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll

System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1590.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.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.
Coordinator
Aug 24, 2016 at 12:31 AM
Hi,

Unfortunately this error is not relative to HDD Guardian but to your Windows configuration (I also run HDD Guardian on Win 10 x64 without any problem): try to change your settings in security (I don't know if you have changed it, reset it to default) or run HDD Guardian as administrator.

Greetings,
Sam
Aug 24, 2016 at 9:53 AM

Which version of .NET are you using ?

j


On 24.08.2016 2:32, Eruestan wrote:

From: Eruestan

Hi,

Unfortunately this error is not relative to HDD Guardian but to your Windows configuration (I also run HDD Guardian on Win 10 x64 without any problem): try to change your settings in security (I don't know if you have changed it, reset it to default) or run HDD Guardian as administrator.

Greetings,
Sam

Coordinator
Aug 24, 2016 at 2:22 PM
My version is the same as yours: 4.0.30319.42000; the target version of .NET framework for HDD Guardian is 4.5.
Aug 24, 2016 at 2:33 PM

Have you 64 bit OS version ?


On 24.08.2016 16:23, Eruestan wrote:

From: Eruestan

My version is the same as yours: 4.0.30319.42000; the target version of .NET framework for HDD Guardian is 4.5.

Coordinator
Aug 24, 2016 at 3:54 PM
Yes, absolutely!

Try to check also your antivirus/sandbox utility...
Sep 1, 2016 at 1:59 PM
Edited Sep 1, 2016 at 2:01 PM
I have seen this error as well, and it is relative to HDD Guardian. The error will only occur if you run HDD Guardian manually, rather than allowing it to run upon user login via its "Run with Windows" option.

The application saves data and configuration files in a restricted folder (i.e. one that requires administrator access), which is the root cause of the error. HDD Guardian should therefore either (1) Request elevation via UAC when necessary; or (2) Store data in the user space, which would not require elevation.

I suspect that S.M.A.R.T. data access itself requires administrator access, so (2) is probably not a meaningful option. However, (1) still is, and should be implemented, in the same manner as other Windows-based S.M.A.R.T. utilities such as CrystalDiskInfo have done.

Meanwhile, you can work around this issue by running HDD Guardian in any of the following ways, when you wish to run it manually:
  • Right click hddguardian.exe (or a shortcut that points to that file), and select "Run as administrator".
  • Run HDD Guardian from within Task Scheduler, using the "Run with highest privileges" option. A task with this configuration is created automatically by HDD Guardian when the "Run with Windows" option is enabled.
  • Use a shortcut that points to the aforementioned Task Scheduler task (e.g. %SystemRoot%\System32\schtasks.exe /run /tn "\path\to\HDD Guardian Task").
  • Use the Windows "RunAs" command line function.
Marked as answer by Eruestan on 9/2/2016 at 1:03 PM
Coordinator
Sep 1, 2016 at 8:34 PM
As I've suspected; from the next version HDD Guardian ask for administration rights, so this problem can't appear again! ;)