People Search Box Error
I was trying to work out why an error was being thrown from a SharePoint 2007 web part today, that extends peoplesearchboxex.cs. The error was the wonderfully helpful "Object reference not set to an instance of an object" exception, being thrown from the base method, PeopleSearchBoxEx.CreateChildControls().
After a lot of messing around, it turns out the error was thrown because of some invalid data in the "Properties" web part property. I removed the data in there and it worked correctly.
This is some pretty disappointing error reporting, considering how likely it is that configuration data could be incorrect.
After a lot of messing around, it turns out the error was thrown because of some invalid data in the "Properties" web part property. I removed the data in there and it worked correctly.
This is some pretty disappointing error reporting, considering how likely it is that configuration data could be incorrect.
Labels: .net, c#, error, MOSS 2007, People Search Box, peoplesearchboxex, SharePoint 2007, webpart
0 Comments:
Post a Comment
<< Home