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

Does anybody know, how I can add an EventReciever to a List, so that it is called from ALL users that are doing action.

For example: I register an EventReceiver that catches the event "ItemAdded". Now, it must be called everytime when a user ads an Item. No matter what user it is.

I have already asked this on the MSDN forum, but there no one could help me. You can find the entry here

I'm unbelievable grateful for any help!

share|improve this question

2 Answers

Do you have some other custom code which may be interfering?

Have you tried your EventReceiver in a brand, new web application?

share|improve this answer
Yes, I've set up 3 brand new Sharepoint Servers with SPS 2010, SPS 2007 & WSS 3.0 All servers are untouched by anything else, there is only my EventReceiver.... – Anonymous Aug 25 '10 at 12:21
Is your class with the EventReceiver in in the GAC or the bin directory? Do you have any CAS policy in place for the class? – James Love Aug 25 '10 at 12:32
I've added the EventReceiver DLL to the GAC. There is nothing in the class but this code: public override void ItemAdding(SPItemEventProperties properties) { properties.Cancel = true; properties.ErrorMessage = "Called"; } – Anonymous Aug 25 '10 at 13:57
What authentication method do your "other users" use? – James Love Aug 25 '10 at 14:06
I tried it with a local users. – Anonymous Aug 25 '10 at 14:09

Hey I found the problem xD

It had nothing to do with Sharepoint. It's too stupid to say it ;)

But: Big Thanks for your help James!!

Greetz

share|improve this answer
1  
-1: Other people finding your question won't know how you fixed this, and we can never mark this question as answered until you tell us what the fix was! Please edit this with the real answer! – Alex Angas Sep 24 '10 at 4:00

Your Answer

 
discard

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