-
Archives
- May 2025
- August 2023
- June 2023
- July 2022
- November 2021
- October 2021
- July 2021
- February 2021
- February 2020
- January 2020
- November 2019
- October 2019
- June 2019
- September 2018
- August 2018
- July 2018
- June 2018
- April 2018
- March 2018
- January 2018
- December 2017
- September 2017
- August 2017
- July 2017
- June 2017
- April 2017
- February 2017
- January 2017
- December 2016
- August 2016
- July 2016
- April 2016
- March 2016
- February 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- January 2014
- December 2013
- November 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- May 2012
- April 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- February 2010
- January 2010
-
Meta
Category Archives: SharePoint 2010
Setting up trusted domain in SharePoint 2010: An exception occurred in AD claim provider when calling SPClaimProvider.FillSearch(): Requested registry access is not allowed.
I was setting up trusted domain for the people picker in SharePoint 2010. I was able to get it to work on one environment but not the other. On the environment that wasn’t working, the steps to set it up … Continue reading
Posted in Claim Authentication, SharePoint 2010
9 Comments
Data validation in publishing pages in SharePoint 2010
Like many things in SharePoint – this should be simple but turns out it is not. I had a requirement to ensure that a DateTime field (Next Review Date) on the page is equal to or greater than the current … Continue reading
Posted in Page Layout, SharePoint 2010
Leave a comment
Custom PortalSiteMapDataSource to display full site structure in left navigation in SharePoint
I had a requirement to ensure that all sites within the site collection would display the full site structure (up to the 1st level sub-site) on the left navigation. Given the site structure below for example: For any site underneath … Continue reading
Posted in Branding, SharePoint 2010, Uncategorized
1 Comment
Gotcha when working with master pages and page layouts in SharePoint Designer and Visual Studio
A common thing to do when editing master pages and page layouts in SharePoint is to edit them in SPD and then copy the source code to Visual Studio for check-in to source control. There is a gotcha here. When … Continue reading
Posted in Branding, SharePoint 2010, SharePoint Designer
Leave a comment
IgnoreIfAlreadyExists attribute when provisioning files in SharePoint
The IgnoreIfAlreadyExists attribute of a File element when provisioning a file can be mysterious. Most of the posts on the net are saying that: When this attribute is set to FALSE, an error will be thrown if the file already … Continue reading
Posted in SharePoint 2010
1 Comment
Should I call Dispose on SPWeb.ParentWeb?
I was coding away and wondered if I should call Dispose the parentWeb object below? I found some official guidance on this and thought I’d blog it here, partly to help jolt my memory later on. The short answer is: … Continue reading
Posted in SharePoint 2010
Leave a comment
‘WARNING: Template is not found and is not applied’ when using custom WebTemplate with PowerShell
WebTemplate is the new way of doing site definitions in SP2010 (see this for a good overview: http://sharepointchick.com/archive/0001/01/01/site-definitions-vs.-webtemplates.aspx). Where you need to refer to the custom WebTemplate, you’d use the ‘{FeatureID}#WebTemplateName’ syntax, e.g: {56C8E551-565B-482A-A038-CCC18A878607}#MyWebTemplate I however have found that this does … Continue reading
Posted in PowerShell, SharePoint 2010, WebTemplate
4 Comments
How to enable Export on custom SharePoint web part
By default your custom SharePoint 2010 web parts will not have the Export command enabled. To enable this command, in your .webpart file, add the following element in the <properties> section: <property name=”ExportMode” type=”exportmode”>All</property>
Posted in SharePoint 2010, WebPart
Leave a comment
Can’t get UpdatePanel in your web part to do AJAX-postback?
If your web part is creating the UpdatePanel dynamically, e.g. in the CreateChildControls() method, check that: The UpdatePanel has an ID assigned The UpdatePanel’s UpdateMode property is set to Conditional. The default is Always. The control triggering the postback (e.g. a … Continue reading
Posted in AJAX, SharePoint 2010, WebPart
Leave a comment
Error occurred in deployment step ‘Activate Features’: Object reference not set to an instance of an object.
If you are getting this error when deploying your solution using Visual Studio, then check that your feature receivers you are not using objects that would be null when the code is not running under an HTTP context. SPContext.Current for example … Continue reading
Posted in SharePoint 2010
Leave a comment