You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The System.Runtime.InteropServices.COMException is thrown when failing trying to get the path using Vanara.Windows.Shell.GetPath(Shell32.ControlPanelItem).
Message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Stack Trace:
atVanara.PInvoke.Shell32.IOpenControlPanel.GetPath(StringpszName,StringBuilderpszPath,UInt32cchPath)
at Vanara.Windows.Shell.ControlPanel.SafeCP.GetPath(StringpszName)
at Vanara.Windows.Shell.ControlPanel.GetPath(ControlPanelItemitem)
Expected behavior
An empty System.String without the System.Runtime.InteropServices.COMException thrown.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Vanara.Windows.Shell.GetPath(Shell32.ControlPanelItem) - Throws Exception Unhandled 'System.Runtime.InteropServices.COMException'
Exception Unhandled 'System.Runtime.InteropServices.COMException' in GetPath(Shell32.ControlPanelItem)
Feb 8, 2020
Describe the bug
The
System.Runtime.InteropServices.COMException
is thrown when failing trying to get the path usingVanara.Windows.Shell.GetPath(Shell32.ControlPanelItem)
.Message:
Error HRESULT E_FAIL has been returned from a call to a COM component.
Stack Trace:
What code is involved
Example:
Expected behavior
An empty
System.String
without theSystem.Runtime.InteropServices.COMException
thrown.The text was updated successfully, but these errors were encountered: