Feeds:
Posts
Comments

Archive for the ‘sharepoint’ Category

Okay simple solution here: Make sure that if you are not the root SPWeb and you want to add custom role definitions i.e. SPRoleDefinitions call SPRoleDefinitionCollection.BreakInheritance(bool,bool)

Read Full Post »

There are lots of reasons this error message can occur, see: http://www.google.com/search?q=sharepoint+Server+Out+Of+Memory. In my case it happened when a new site was being provisioned using a custom site definition during the ApplyWebTemplate call. Turned out the there were subtle errors in my onet.xml. In particular I was referencing some document templates using an incorrect path:

Read Full Post »

I always forget the name of the class that stores a great big list of field ID constants. So as a reminder to myself it’s SPBuildInFieldId For example: Whilst looking this up again I stumbled across another similar class SPBuiltInContentTypeId that holds content type id’s for the common OOTB content types, neat!

Read Full Post »

Today I had the requirement to include a link in the quick launch menu to the current web’s homepage. Agreed it’s a strange requirement, but nonetheless in this case it was arguably not too bad. However the default SPNavigationProvider does not display the homepage in the quick launch menu. In order to do this add [...]

Read Full Post »

Ever wished that the WSS user profile would update it’s values immediately after you’ve just ran a new SSP profile import. Well I just came across a very cool little tool that does just that. The “User Profile Sync” tool hosted on codeplex. It’s worth noting that SharePoint has timer jobs that run and perform [...]

Read Full Post »

I came across this problem on a web application that had been working fine, then all of a sudden the “Target Audiences” property disappeared from the web part tool pane.   To solve this problem I re-associated the web application with the Shared Service Provider (SSP) and bounced IIS. 1. Web applications are associated with [...]

Read Full Post »

If you get ever get this error message and you are rolling out your own list definition, chances are you messed something up in the shema.xml file. The first place to look is the event logs. In my case today this was caused due to an incorrectly mapped column name in the field element. The [...]

Read Full Post »

Okay here’s another baffling API bug: If you parse a date using SPUtility.ParseDate(web, “11/29/2009 13:37:12″, SPDateFormat.DateTime, false) it will return you a date object without parsing the time! Remove the seconds SPUtility.ParseDate(web, “11/29/2009 13:37″, SPDateFormat.DateTime, false) and we are good to go. Full program listing of bug follows: The above code assumes you have US [...]

Read Full Post »

Got stuck on this one for a long time, more than an hour Microsoft.SharePoint.WebPartPages.WebPartPageUserException: The file is not checked out.  You must first check out this document before making changes.   at Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean skipRightsCheck, Guid& newTypeId, Byte[]& newAllUsersProperties, Byte[]& newPerUserProperties, String[]& newLinks)   at Microsoft.SharePoint.WebPartPages.SPWebPartManager.SaveChangesCore(SPLayoutProperties layoutProperties, Boolean httpGet, Boolean saveCompressed, Boolean [...]

Read Full Post »

From time to time you might want to provision your WebParts using the CAML markup and then modify them in a feature later on. Most examples on the web find the webpart based on it’s title. i.e. However you can specify the ID of a web part in your onet.xml / element manifest like so: [...]

Read Full Post »

« Newer Posts - Older Posts »

Follow

Get every new post delivered to your Inbox.