Monday 30 August 2010

Issues regarding ItemAdding and ItemUpdating EventReceivers when not firing

Today I succeeded in creating working event receivers for my custom list in a MOSS 2007 environment.
I had some difficulties to get those EventReceivers fired. I started with ItemAdding and ItemUpdating events. Those where installed and fired correctly.
But I actually needed the ItemAdded and ItemUpdated events. So I switched to them. And there the problems started.

One big problem is the caching (or something like that) of the elements.xml file of the feature (between brackets: don't forget to change the events in the elements.xml file!). Upgrade of the solution won't work!

You need to uninstall and remove the feature from the solution store. Make sure that all files of the feature are gone from the 12-hive\template\features\-folder.
To make sure that you really get rid of all the old version feature settings, do a IISRESET /NOFORCE. Until I did this, SharePoint remembers some settings of the old version feature. This is quit anoying and frustating and took me a while to get this sort out.

4 comments:

Swapz17 said...
This comment has been removed by the author.
Swapz17 said...
This comment has been removed by the author.
Swapz17 said...

Thanks for the great tip, saved me a couple of hours. I was facing this issue in SharePoint 2010. This happens when the content type is already deployed and you either add event receiver to it or change the type of exisiting event receiver.

klaus said...

China Bopp film suppliers a One of the key benefits of BOPP films is how flexible they are. Because it may be manufactured in a variety of thicknesses, widths, and finishes, this film can be used in a broad variety of applications. To better meet the needs of tapes and labels, biaxially oriented polypropylene (BOPP) film may be produced in a wide variety of colors and designs before being coated with an adhesive.