SPSecurableObject..::..ResetRoleInheritance Method


This method Removes local role assignments and inherits role assignments from the parent object.

If a list has some items that are using unique permission you can reset the permissions back to list using this method.

SPListItem.ResetRoleInheritance();

Thanks to the SDK

mk:@MSITStore:C:\Program%20Files%20(x86)\Microsoft%20SDKs\SharePoint%202010\SP2010SDK.chm::/html/b814e6a6-8b27-5d27-e6c3-2fbc5fc1e284.htm

Top Navigation Missing from daysandnight.master


SP2010 daysandnight.master does not have top navigation.  to make it work simply add the following element just before the Ribbon Div.

 

<div class="s4-lp s4-toplinks">
                        <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
                                <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
                                    <SharePoint:AspMenu
                                      ID="TopNavigationMenuV4"
                                      Runat="server"
                                      EnableViewState="false"
                                      DataSourceID="topSiteMap"
                                      AccessKey="<%$Resources:wss,navigation_accesskey%>"
                                      UseSimpleRendering="true"
                                      UseSeparateCss="false"
                                      Orientation="Horizontal"
                                      StaticDisplayLevels="2"
                                      MaximumDynamicDisplayLevels="1"
                                      SkipLinkText=""
                                      CssClass="s4-tn"/>
                                    <SharePoint:DelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
                                        <Template_Controls>
                                            <asp:SiteMapDataSource
                                              ShowStartingNode="False"
                                              SiteMapProvider="SPNavigationProvider"
                                              id="topSiteMap"
                                              runat="server"
                                              StartingNodeUrl="sid:1002"/>
                                        </Template_Controls>
                                    </SharePoint:DelegateControl>
                                </asp:ContentPlaceHolder>
                        </asp:ContentPlaceHolder>
                </div>
Make sure you remove the PlaceHolderTopNavBar and PlaceHolderHorizontalNav from invisible PlaceHolder from the bottom of the master page.
 

Specified value is not supported for the {0} parameter


I receive this error message when I tried to run configuration wizard of SharePoint Server 2010 on a server which is added to X domain but currently the machine is not connected to domain.
 
Looking into log file I found the following important starters.
 
Unable to get domain DNS or forest DNS for domain X. ErrorCode=1355 
08/05/2010 02:19:34.62  PSConfigUI.exe (0x03AC)                  0x0BD8 SharePoint Foundation          Monitoring                     b4ly High     Leaving Monitored Scope (AppPoolCreation: SharePoint Central Administration v4). Execution Time=2479.01814341862 
08/05/2010 02:19:34.65  PSConfigUI.exe (0x03AC)                  0x0BD8 SharePoint Foundation          Topology                       7fa1 High     Provisioning of the web application, null, has encountered the following error: System.ArgumentException: Specified value is not supported for the {0} parameter.     at Microsoft.SharePoint.Utilities.SPUserUtility.GetDomainControllerToSearch(SPWebApplication webApp, String domainName)     at Microsoft.SharePoint.Utilities.SPUtility.GetDomainAndPropColl(SPWebApplication webApplicaiton, String loginName, String[]& resolveUserAdProperties, …. Truncated
 
Seems like SharePoint configuration wizard requires to read something from AD.   I am now taking the server to the X Customer to run the configuration wizard.  1 hour drive away.
 
Will update …
 
Update:
As expected the configuration wizard went without error at the customer network. Smile