FW: Smartpart access denied error

Source: Internet
Author: User

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:

"Cocould 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 cocould 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.