Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

The below code works fine for ItemAdded, however it isn't firing for ItemUpdated, simply put how do you add an ItemUpdated event receiver for a Wiki Page Library.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Receivers ListTemplateId="119">
      <Receiver>
        <Name>Wiki Receiver Item Updated</Name>
        <Type>ItemUpdated</Type>
        <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
        <Class>Custom.SharePoint.Intranet.WebTemplates.WebParts.WikiReceiver.WikiReceiver</Class>
        <SequenceNumber>10001</SequenceNumber>
      </Receiver>
  </Receivers>
</Elements>

namespace Custom.SharePoint.Intranet.WebTemplates.WebParts.WikiReceiver
{
    /// <summary>
    /// List Item Events
    /// </summary>
    public class WikiReceiver : SPItemEventReceiver
    {

        /// <summary>
        /// An item was added.
        /// </summary>
        public override void ItemUpdated(SPItemEventProperties properties)
        {

[update]
I have created Deleted and Updated a fresh and both will not fire.

share|improve this question
Did you add the updating method afterwards? If that is the case make sure you add it through properties in VS, as it might add additional setting to the hidden file – eirikb Oct 2 '12 at 16:20
Handle ItemUpdated is set to true on the receiver, added fresh in VS, still no go. – Hugh Wood Oct 2 '12 at 16:38
Erik if you have any idea that will fix this, I will turn this into a bounty tomorrow and give you 100 points, same goes to anyone. – Hugh Wood Oct 3 '12 at 10:46
Check the list in SharePoint Manager - are your event receivers listed? – Chloraphil Oct 24 '12 at 14:21
No they won't register, even tried to attach them via code. – Hugh Wood Oct 24 '12 at 14:29
show 2 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.