Month: November 2007

Quicknote: Forcing uninstall of msi

No Picture

I have recently been working on a build server that compiles and installs an MSI. However, uninstall timed out on one occasion. When I subsequently tried to uninstall through add / remove programs, I got the error “The…

Read More »

SharePoint: Adding a webpart to a page through the object model

No Picture

The code below illustrates adding a custom webpart to a webpart page (it doesn’t have to be a custom webpart, you can also following this approach with standard webparts). In this case I am going to add a…

Read More »

SharePoint: Stopping redirect to access denied page

No Picture

If a web is accessed that the current user doesn’t have permissions to, SharePoint’s default behaviour is to redirect you to the “access denied” page. This is true if you are trying to access it through the object…

Read More »

SharePoint: Content Type IDs

No Picture

Content type ids can be found out by look at the ctypes feature. Standard MS ones are typically of the form 0x01XX (where X is a hex digit). Note that content types can inherit. Inheritance is specified by…

Read More »

MOSS / WSS 3.0: Creating a custom list feature

No Picture

Rough guide to creating a custom list feature (aka a list definition). Creating our list feature Copy an existing feature e.g. 12\Features\ContactsList to a new feature folder such as 12\Features\SkypeContacts (where SkypeContacts is the name of the new…

Read More »

MOSS / WSS 3.0: Checking permissions against an SPWeb

No Picture

For Sharepoint 2003, I used to check a users rights by getting the user from the SPWeb.AllUsers collection (as this contains all users of groups as well as explicitly named users, unlike SPWeb.Users). I would have then tested…

Read More »

WSS 3: "Exception from HRESULT: 0x80040E14"

No Picture

Time to kick-start the old blog again – it’s been a crazy couple of months, hence the lack of posts.I had just configured a cruise control / msbuild build server to compile and install SharePoint code (on this…

Read More »