[Tool] EventReceiver-Installer for SharePoint

I just created a simple tool that allows the easy installation (and deletion) of EventReceiver-Definitions with SharePoint. It’s a stand-alone tool written in C# and it must be executed on the Server that runs SharePoint.

The tool is named “EventReceiver-Installer” and is now in Version 1.0 1.1.

Features

  • Browse web-applications
  • Categorized view of EventReceivers
  • Deletion of EventReceiver-Definitions
  • Adding of multiple EventReceiver-Definitions with one click
  • Retrieves the assemblies full-name (no more Reflector required)

Screenshots

EventInstaller-Main
Main view
EventInstaller-Info
Info view
EventInstaller-Add
Add new EventReceier
EventInstaller-Add2
Add new EventReceiver 2
EventInstaller-Delete1
Delete EventReceiver-Definition
EventInstaller-Delete2
Delete EventReceiver-Definition 2

Download

Your can download it here (443KB) for free. The license is included in the archive.

Future

This is Version 1.1 and there will be additional improvements.

  • Support of Document-Libraries and Websites
  • Support for different credentials (not the current user)
  • Multi-Deletion of EventReceiver-Definitions
  • Definition types grouped be target (list, document library, website)

13 Comments



  1. Hi Eric,

    I`m so appreciated to your charming tool, it`s very clear and quick during the process I try my sharepoint event handler. Thank you.

    As a matter of fact, I`ve ever successfully reailize such EventHandler by using codes to register. However, after that, when I change to use feature to register, which are embodied in .wsp or .wsp.cab as a solution to farm, I always failed, with so many, so many astunding effect that I`ve never experience.

    for example:
    1. SDK command allow .wsp on addsolution, but permit of no deploysolution provided -url parameter exist anytime.

    2. Even to dismiss -url, and make .wsp deployed global, running program(attach to process w3wp.exe), the Event Never inspire, which is to say, my functionality has no function. but the program is okay, and function well by registering to SPList(SPListItem Adding Event), and by using your tools as “EventReceiverInstaller V1.1”. Why?

    Could you share with me your experience on the last step of Feature Deployment, how to make .wsp solution and what layer of folder should I put ones if there are any file thus generated by.. Thank you so much!

    Best Regards,

    Nick.



  2. Hi Nick,

    thanks for your comment.

    1. For easy creation and packing for .wsp-solutions I recommend the wsp-builder. I cannot live without that tool! You simply create the LAYOUTS-structure inside your project and wsp-builder creates the solution for you. Even with assemblies that go in the GAC or BIN.

    2. In order to add Event-Handlers to list you could use an Feature-Receiver and add/remove the event-handler when the feature is activated or deactivated. Or you can use the xml-markup to bind the event handler.

    Hope this helps!


  3. I am using this tool, but when add the DLL, it is not taking and error message is showing as assembly can not be loaded.

    Can you please tell me how to solve this issue?


  4. @San
    Is you assembly strong named?!


  5. i have the same error adding every event :/ My assembly is all strong deployed to gac.


  6. Sorry i find my mistake, the class name laoded was bad…


  7. Hello,

    I wrote the event receiver and successfully added ItemAdding and ItemAdded events to “Shared Documents”. However, it seems that event handlers are not being triggered. After “registering” the DLL with your tool, is there anything else that has to be done to make this work?

    Thank you.


  8. Hi SamG,

    normally this is all you have to do. An iisreset should reload the definitions in case its not working. What does your debugger “say” after attaching to “w3wp.exe”?


  9. Hi,
    Nice tool, but it gets my classname wrong when I have a namespace.

    The tool reads “HolidayList”, when it should read “HolidaytList.Eventhanfler”. “HolidayList” is my namespace and “Eventhandler” is my classname.

    This code reads it correctly: typeof(EventHandler).FullName

    Regards, // Henrik


  10. Hi Henrik,

    thank you for your hint! I’m very busy right now but I hope I can release a new version in the end of this month 🙂


  11. Hi! I was surfing and found your blog post… nice! I love your blog. 🙂 Cheers! Sandra. R.

Comments are closed.