Posts

Showing posts from December, 2007

Luke, don't use the '-force' (when reinstalling features)

Just a quick post to document a problem that I was having. I was refreshing my memory on Event receivers and was following this tutorial: http://www.wrox.com/WileyCDA/Section/id-306329.html The only difference between my code and the example was that I put in a comment (<!--like this-->) between the <Receivers> opening tag and the <Receiver> opening tag just to document something....well, SP doesn't like this at all and I got this error: Cannot insert the value NULL into column 'Name', table 'WSS_Content_Portal.dbo.EventReceivers'; column does not allow nulls. INSERT fails. The statement has been terminated. So I took out the comment and reran the install and activate commands (from the command line) and everything worked fine...or so it said (I got the operation completed successfully), message. However when trying to test the sample (after activating), I created a new announcements list and got an error. I checked the logs and lo and behold, the