The exception "Access to the path ... is denied" occurs when you launch SASĀ® Enterprise GuideĀ®


When launching SAS Enterprise Guide, you might receive the following exception:

Access to the path 'C:\Users\user-ID\AppData\Roaming\SAS\EnterpriseGuide\7.1\TaskBrowserOptions.xml' is denied.
-------------------------- Technical Information Follows --------------------------
Exception Details:
----------------------------------------
Exception type: System.UnauthorizedAccessException
Message: Access to the path 'C:\Users\gegeor\AppData\Roaming\SAS\EnterpriseGuide\7.1\TaskBrowserOptions.xml' is denied.
Source: mscorlib
Target Site: WinIOError
Stack Trace:
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)
at SAS.EC.TaskBrowser.TaskBrowserControl.WriteSerialization()
at SAS.EC.TaskBrowser.TaskBrowserControl.DisplayRecentDocked()
at SAS.EC.TaskBrowser.TaskBrowserControl.UpdateTaskBrowserForDockChange(TaskBrowserDockPosition dockPos)
at SAS.EG.MainForm.CreateTaskBrowserView()
at SAS.EG.MainForm.HandleProviderChange(Boolean fOMRConnection)
at SAS.EG.MainForm.OnProviderConnected(Provider provider)
at SAS.EG.MainForm.ConnectToRepository(Provider provider)
at SAS.EG.MainForm.OnAppLoaded()

The issue occurs if a portion of your Windows user profile is set to a hidden status in Folder Options. Specifically, the folder that SAS Enterprise Guide is faulting with is the \EnterpriseGuide\7.1\ folder.

To resolve this issue, simply unhide the folder location in your Windows user profile. Your Windows system administrator might need to change this property for you.