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’

  1. Right click on the folder and select properties
  2. Select the Security panel
  3. Click add
  4. type “everyone” and click ok
  5. make sure that read is allowed

Quick and dirty

posted @ 2009-11-11 09:51  upzone  阅读(304)  评论(0编辑  收藏  举报