In The Mix

As a SharePoint architect I have the business behind me and the Developers and IT Pro on my shoulders.

Sandbox Solutions issue in SharePoint 2010 Beta February 2, 2010

Filed under: SharePoint 2010 — fmuntean @ 10:23 am
Tags:

For those who start building sandboxed solutions in SharePoint 2010 beta and have trouble seeing their sandboxed solution web part on the page,or deployment errors there is a known bug in there that can be corrected by applying the following Power Shell script witch fix the ACL for the sandboxed code:

 

#Fix SharePoint Sandboxed Solutions Bug – Web Part Not Visible
$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName
$person = [System.Security.Principal.NTAccount]"Users"
$access = [System.Security.AccessControl.RegistryRights]::FullControl
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit"
$propagation = [System.Security.AccessControl.PropagationFlags]::None
$type = [System.Security.AccessControl.AccessControlType]::Allow
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)
$acl.AddAccessRule($rule)
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

Advertisements
 

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