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)
Archive for the ‘sharepoint’ Category
You cannot customize permission levels in a web site with inherited permission levels. at Microsoft.SharePoint.SPRoleDefinitionCollection.Add(SPRoleDefinition role)
Posted in sharepoint, tagged sharepoint, SPRoleDefinition on December 16, 2009 | 1 Comment »
Server Out Of Memory – There is no memory on the server to run your program. Please contact your administrator with this problem. at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId)
Posted in bugs, sharepoint, tagged bug, onet.xml, sharepoint on December 15, 2009 | Leave a Comment »
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:
SharePoint field constants.
Posted in sharepoint, tagged field, fieldconstant, fieldid, sharepoint, SPBuiltInContentTypeId, SPBuiltInFieldId on December 14, 2009 | Leave a Comment »
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!
Shared Services User profile synchronization with WSS user profiles stored in the User Information list
Posted in sharepoint, tagged sharepoint, synchronization, userprofiles on December 3, 2009 | Leave a Comment »
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 [...]
Target Audience property not displaying / missing for web parts
Posted in bugs, sharepoint, tagged audiencefilters, bug, sharepoint, targetaudience, webpart on December 3, 2009 | 1 Comment »
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 [...]
Unknown SPRequest error occurred. More information: 0x80040e14 – Exception from HRESULT: 0x80040E14
Posted in sharepoint, tagged schema, sharepoint on December 2, 2009 | 2 Comments »
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 [...]
SPUtility.DateParse !♥ seconds: SPUtility.DateParse removes the time component if you parse a date that incudes seconds!??!
Posted in sharepoint, tagged bug, sharepoint, SPUtility, SPUtility.DateParse on November 30, 2009 | 1 Comment »
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 [...]
SPLimitedWebPartManager.SaveChanges throws Microsoft.SharePoint.WebPartPages.WebPartPageUserException: The file is not checked out.
Posted in sharepoint, tagged provisioning, sharepoint, webpart, webpartmanager on November 29, 2009 | 5 Comments »
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 [...]
Provisioning a Web Part with a predefined ID in your onet.xml of element manifest.
Posted in sharepoint, tagged onet.xml, provisioning, sharepoint, webpart on November 29, 2009 | Leave a Comment »
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: [...]