I was playing with the ItemUpdated Event in a Document Library Definition File using VSEWSS. I stepped into the filed like a good little girl using the w3wp.exe process. Guess what the ServerContext is null, so I can't use the UserProfileManager...I found this little MSDN Post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3273163&SiteID=1. It turns out there is a bug in the ServerContext, which is a little bizarre considering you can do SPContext.Current.Web/Site...I guess it's time to use the webservice to update user profiles: http://msdn.microsoft.com/en-us/library/ms544240.aspx. You have to love the random bugs:) Sometimes I wonder if MOSSLover is a appropriate...Maybe I should be the SharePoint Bug Girl Mascot...
posted @ Friday, July 11, 2008 2:08 PM |
Filed Under [
MOSS
]