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

 

Advertisements

, , ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: