Archives for "July, 2008"
ListInstance and "Object reference not set to an instance of an object"
Description
While activating a feature that contains list instances I get an “Unknown error” message in the SharePoint UI.
Log Entry
The element ‘NameOfListInstance’ of type ‘ListInstance’ for feature ‘MyCompany.SharePoint’ (id: 00000000-0000-0000-0000-000000000000) threw an exception during activation: Object reference not set to an instance of an object.
My solution
After a lot of debugging I noticed that if I remove [...]
Storing configuration values
I found a create post about storing custom configuration values for your SharePoint solutions. Check it out at Chris O’Brien’s blog
Custom Content Type and Rich Text
Ok so here is my scenario:
I’m developing a custom SharePoint solution that includes …
a custom content type
numerous fields including RichText enabled fields
list template
a custom control template for my new/edit/display forms
The problem:
Everything was rendering perfectly except my RichText fields.
The solution:
Define your field and reference it in the ContentType xml file
<Field ID=”{D5C2A287-02B5-47b1-9865-AC8300A00E86}”
Name=”MyRichTextField”
StaticName=”MyRichTextField”
DisplayName=”My RichText”
RichText=”TRUE”
[...]
Err… Value does not fall within the expected range
I got this beautiful error message earlier when trying to activate a custom feature I’m working on. “Value does not fall within the expected range.” Did a google search and found out that there might be something wrong with one of the XML files.
After a good hour and a half I noticed that I had [...]
Part 1 – Creating the SharePoint project
This is the first part in a series of walkthroughs specially written for developers beginning SharePoint development. I’m also a beginner and after a few weeks of reading books, blogs and watching countless screen-casts I’ve finally got to that point where I’m familiar with the fundamental elements and environment of SharePoint development.
Part 1 is only [...]
Developing a custom SharePoint solution
My name is Sigurbjörn Guðjónsson, and I live in Reykjavík, Iceland. I recently started working as a developer for Focal Software & Consulting (www.focal.is). My job description is a .Net developer and I’m currently working in the SharePoint environment.
I was first introduced to SharePoint late last June so I’ve got just about +3 weeks of [...]