Skip to content

SAVE fails: Hard-coded path in source code? #344

Description

@MikeTWilson

First-time user, and first shortcut I tried to add. I add a title 'DEV' and one item to Visual Studio 2022 (C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe). I click Save and it fails with an error. The only options are to Continue or Quit. I changed the security settings for the TaskbarGroups folder and all subfolders to allow wide open access for all users and authenticated users, but it doesn't help. I also tried creating the folder structure manually and copying the program files over (including hidden folders and files), but that didn't help either.

From the call stack it looks like the path might be hard-coded in the program. There are two references to C:\Users\jacks\Desktop\Taskbar. I don't have this folder on my machine. The program is running from C:\Download\TaskbarGroups.

Any ideas? Thank you.

System.UnauthorizedAccessException: Access to the path 'config\DEV' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.IO.Directory.CreateDirectory(String path)
at client.Classes.Category.CreateConfig(Image groupImage) in C:\Users\jacks\Desktop\Taskbar dev\main\main\Classes\Category.cs:line 70
at client.Forms.frmGroup.cmdSave_Click(Object sender, EventArgs e) in C:\Users\jacks\Desktop\Taskbar dev\main\main\Forms\frmGroup.cs:line 559
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: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

TaskbarGroups
Assembly Version: 0.2.0.0
Win32 Version: 0.2.0.0
CodeBase: file:///C:/Download/TaskbarGroups/TaskbarGroups.exe

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9321.0 built by: NET481REL1LAST_25H2_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9319.0 built by: NET481REL1LAST_25H2_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll

Windows.Data
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/SysNative/WinMetadata/Windows.Data.winmd

System.Runtime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll

Windows.Foundation
Assembly Version: 255.255.255.255
Win32 Version: 10.0.10011.16384
CodeBase: file:///C:/WINDOWS/SysNative/WinMetadata/Windows.Foundation.winmd

Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll

ChinhDo.Transactions.FileManager
Assembly Version: 1.4.0.36
Win32 Version: 1.4.0.36
CodeBase: file:///C:/Download/TaskbarGroups/ChinhDo.Transactions.FileManager.DLL

netstandard
Assembly Version: 2.0.0.0
Win32 Version: 4.8.9221.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll

System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9221.0 built by: NET481REL1LAST_25H2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.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:

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions