Elements

Content Type SPI bug in SharePoint Sandbox Solutions

I seem to have come across what I believe to be a bug when with Content Types in SharePoint 2010 Sandbox Solutions. I believe this bug to be caused by Visual Studio but I haven’t been able to confirm this yet. The issue arises when you provision a Content Type…

Synchronous Event Receivers

SharePoint is a big (massive!) product, there are features and enhancements in SP2010 which I haven’t even used yet – mostly because I haven’t needed to. One of these is the ability to run after events synchronously (ItemAdded, ListAdded and WebProvisioned). Previously all after events were executed asynchronously and on…

Overwriting Fields/Content Types in Elements.xml

I only spotted this the other day – the Elements.xml contains an ‘Overwrite’ attribute. I was provisioning a custom Content Type and some Site Columns but when activating the feature it failed. The error message was that the Content Type already existed in the site – see screenshot below.  …