Error: ArcGIS Snippet Finder causes System.UnauthorizedAccessException on Windows Vista
Right-clicking in Visual Studio 2005 and selecting the ArcGIS Snippet Finder, when it is running on the Windows Vista operating system, returns a clsArcGISSnippetPreferences.SavePreferences dialog box with the following error message:
"System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ArcGISSnippetPreferences9.xml' is denied."
The IDE Integration feature of the ArcGIS Snippet Finder tool in the ArcGIS Desktop SDK and ArcGIS Engine SDK reads and writes to a preferences XML file on the local hard disk. If Microsoft Visual Studio 2005 is run without Administrator privileges, the local hard drive will not be able to be written to, therefore, resulting in the error dialog box.
Solution or Workaround
If an administrator login is available, use that account.
If only a limited user account is available but with administrator privileges, Visual Studio 2005 can be run as an administrator by performing the following steps:
- Click the Windows button.
- Navigate to the location of the Microsoft Visual Studio 2005 program.
- Right-click on the Microsoft Visual Studio 2005 program icon. Select 'Run as administrator'.
See KB article 33051, from the link located in the Related Information section, for additional details for other error messages that may result from running Visual Studio 2005 in Windows Vista.
- Why is an 'Administrator permissions are recommended for running Visual Studio 2005 SP1' dialog box returned when using Windows Vista?