FW:Smartpart access denied error
I recently had this error:
A user had the rights to edit a page, and to select edit webpart for a smartpart. When the edit webpart panel showed up the following error where shown:
“Could not open user control path: System.UnauthorizedAccessException: Access to the path ‘C:\Inetpub\wwwroot\wss\VirtualDirectories\80\UserControls’ is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption) at System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption) at System.IO.Directory.GetFiles(String path) at SmartPart.UserControlToolpart.RenderToolPart(HtmlTextWriter output)”
After having tried out a few different solutons i found out that it could be solved simply by changing the securitysettings on the folder: ‘C:\Inetpub\wwwroot\wss\VirtualDirectories\80\UserControls’
- Right click on the folder and select properties
- Select the Security panel
- Click add
- type “everyone” and click ok
- make sure that read is allowed
Quick and dirty