Thursday, May 15, 2014

Visual Studio 2010: Event Receiver Name Change

I change the name of an event receiver in my solution, just because I think "EventReceiver1" isn't such a good name. I was sure this thing would work, so I tried to deploy it on my SharePoint 2010 Farm and was stunt when I saw that it wasn't able to activate it.

So what did I do wrong? Simple!
After you change the name of the event receiver make sure you open the Elements.xml and change the name in the <class> attribute accordingly.

I'm still wondering, why something like this isn't done automatically.

No comments:

Post a Comment