Author Archive

Alternative for PublishingWeb.IsPublishingWeb

December 19 2012 87 comments

Just today I wondered why something was not working with a specific custom code and was able to track the problem down by debugging to using PublishingWeb.IsPublishingWeb -method to a web in another site collection with read-permissions. The error message was somewhat puzzling, something like:


at Microsoft.SharePoint.Library.SPRequestInternalClass.GetWebUrl(Guid gWebId, String bstrSiteUrl)…..

Read more »

SPList’s Title Property & SPField’s DisplayName not Updating

November 14 2011 98 comments

We encountered a problem which seemed really strange while provisioning our site collection with PowerShell (New-SPSite). Our provisioning contains programmatic custom list creation to our publishing webs via feature receivers. The procedure is that the feature receiver creates the list with a URL friendly Title and then changes the Title to a UI friendly…

Read more »

Extending the SocialCommentControl

April 6 2011 188 comments

SocialCommentControl is the control, which enables commenting on a page. You can use social commenting feature with the Note Board web part (Social Collaboration > Note Board) by adding the web part onto your page. You would have to have User Profile Service Application provisioned to enable social comments. Comments are stored in the Social DB (SocialComments table) of…

Read more »

Blog Site in Anonymous Use

December 22 2010 140 comments

Anonymous user cannot enter a blog entry in a SharePoint site if ViewFormPagesLockDown feature is active at site collection level and ViewFormPagesLockDown feature is active if site collection is based on publishing portal. After googling we came accross plenty of resources considering this matter:

Read more »

Custom SPJobDefinition and “Access denied” Error

October 22 2010 157 comments

I found Stef Van Hooijdonk’s post when trying to install a custom timer job and having the “Access denied” -issue. I tried Stef’s workaround by running the powershell -script he provided and got my custom timer job to install via web scoped feature’s feature receiver.

I think there are issues to consider though. Do…

Read more »

Granting Permissions – Sending Welcome E-Mail by Accident

October 18 2010 25 comments

The “Send welcome e-mail to the new users” checkbox is checked by default when users are granted permissions to SharePoint. We developed a quick workaround to uncheck the checkbox by default to prevent accidental e-mails:

$(document).ready(function () {
    if (self.location.href.indexOf(‘aclinv.aspx’) > 0) {

Read more »
Page 1 of 212