locked
List Item Added Event Receiver RRS feed

  • Question

  • Hi

    I have created a List Added event receiver. I am finding, this event is fired when logged in as Site Owner. For Contribute, design permission user List Item Added event is not firing.

    Please help me about this.

    Thanks in advance.

    Thursday, April 26, 2012 8:45 PM

Answers

  • HI,

    Just try to use runwithelevatedprivileges in your code

     SPSecurity.RunWithElevatedPrivileges(delegate()
      {
        //Put your code here
      }

    Let us know if it works


    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"

    • Proposed as answer by Shimin Huang Friday, April 27, 2012 9:48 AM
    • Marked as answer by Shimin Huang Friday, May 4, 2012 6:19 AM
    Friday, April 27, 2012 5:11 AM

All replies

  • If event is not firing then it might be either of 2 cases

    (1) Either event receiver is not registered  OR

    (2) it is registered to the wrong list. 

    First step is to check whether event receiver  is correctly registered to the correct list. 

    Use sharepoint tips utility pack to check this http://spstipsutilitypack.codeplex.com/


    Regards,
    Milan Chauhan

    Friday, April 27, 2012 4:34 AM
  • HI,

    Just try to use runwithelevatedprivileges in your code

     SPSecurity.RunWithElevatedPrivileges(delegate()
      {
        //Put your code here
      }

    Let us know if it works


    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"

    • Proposed as answer by Shimin Huang Friday, April 27, 2012 9:48 AM
    • Marked as answer by Shimin Huang Friday, May 4, 2012 6:19 AM
    Friday, April 27, 2012 5:11 AM