Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7080675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:49:28+00:00 2026-05-28T06:49:28+00:00

I have an Event Handler that overrides the ItemAdded method. This works fine on

  • 0

I have an Event Handler that overrides the ItemAdded method. This works fine on my DEV environment but on my LIVE environment it doesn’t fire. I’m wondering if there is something wrong with the way I have set it up.

The class is declared like this.

public class SitesEventHandler : SPItemEventReceiver {

    public override void ItemAdded(SPItemEventProperties properties) {
        //... code removed.
    }
}

I’ve added the event handler like this:

SPList sites = web.Lists["Sites"];
sites.EventReceivers.Add(SPEventReceiverType.ItemAdded, "MossServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6e99", "MossServices.SitesEventHandler");

I know that the event has been added but I’m wondering if there is a step I’ve missed out.

EDIT
I have found that it runs fine when I use it as an administrator but not as anyone else. I must admit I suspected it could be permissions. Would anyone be able to tell me why it works for a systems administrator but not a content manager? Again, is there anything in the set up I should have done?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:49:28+00:00Added an answer on May 28, 2026 at 6:49 am

    The problem here wasn’t with the way the event handler/receiver was registered or with the code within the class. It was a problem with permissions.

    What really helped me was looking in the logs that Sharepoint writes:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS

    This link helped me with my particular problem:
    http://sharenotes.wordpress.com/2008/03/18/cannot-open-log-for-source-you-may-not-have-write-access/

    Hope this helps someone. This does have the feel of a dirty hack, but sometimes the option to entirely scrap a system and re-do the years of previous dirty hacks just isn’t an option.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an event handler that needs to determine a type and execute code
I have an event handler that will remove an element from a list of
In my Silverlight app I have an event handler that dynamically creates a new
I have the following: <select id=price_select></select> I have an event handler that invokes the
I have an image with a click event handler that captures the location where
I have some event handler on a boundary class that manages a persistence mechanism
I have a simple event handler with a ItemAdding event that changes a column
I have an application that uses Ajax.Request and its onSuccess event handler in lots
I have a timer that needs to not process its elapsed event handler at
I have a winform with some buttons that are updated in an event handler.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.