10 votes
Accepted

SP2013 Event Receiver action open page library\list

As a short answer, There is no Event Receiver type that will trigger when opening a Library/ List Page!!! The Event receiver should be used to trigger a specific action before or after a specific ...
Mohamed El-Qassas MVP's user avatar
8 votes
Accepted

When to use Server side event receivers Versus using Remote event receivers?

Answering your 4 questions: Differences Remote Event Receiver (RER) - A provider hosted app is must, which means you need additional infra. Apparently, as pointed out by Mihail-Florin Popa, it is ...
AmitWiki's user avatar
  • 1,029
7 votes

EnsureUser() will return the following error "The specified user could not be found. "

Can you check if the user's are still enabled in AD? This error can be occurred as if the user is not enabled in AD, though it will still show as an SP User. Please let me know what happens.
Md. Tahmidul Abedin's user avatar
6 votes
Accepted

Unable to Debug Event Receiver

Try to do the following to hit your breakpoint Retract your solution. Perform IISRESET. Deploy it again. Set your breakpoint and make sure it's not disabled. Open SharePoint Portal. Attached Visual ...
Mohamed El-Qassas MVP's user avatar
6 votes
Accepted

User of this.EventFiringEnabled statement in Event Receivers

The purpose is to hinder an update on an item from triggering event receivers again. It was added as a way to help developers handle the "infinite loop" of update events that would otherwise be ...
Robert Lindgren's user avatar
6 votes
Accepted

ItemAdded event in Event Receiver

If your event receiver's feature scope is set to "Site", then the "ListUrl" and the "ListTemplateId" will be ignored, and your event receiver will fire on all lists. Now in your case, Whenever task ...
SP Developer's user avatar
  • 3,085
5 votes

When to use Server side event receivers Versus using Remote event receivers?

At first, Remote event receivers are mainly introduced for cloud or office 365 environment (SharePoint Online) where the core logic will run in an hosted environment outside of SharePoint Sites and ...
kesava's user avatar
  • 2,176
5 votes
Accepted

properties.ListItem.Url inside an event receiver is working well for discussion board items, while it fails for custom list (url will end with _.000 )

I never use the SPListItem.Url property, as list items don't really have a user browsable URL. They only have an ID, and the list that contains them has a display form (list forms may also change over ...
Evariste's user avatar
  • 9,751
4 votes

SPWeb.Exists returns true for web don't exists

I think you're running in the OpenWeb() danger when you're not passing in an argument to the method. It is probally opening the RootWeb of your sitecollection which still exists. You need to pass in ...
bartd's user avatar
  • 106
4 votes
Accepted

SharePoint Item Changed or Event Receiver

This totally depends on your requirement. Please refer following points this will be helpful for your decision. If you need the ability to cancel the process, you should use Event Receiver. It is not ...
Rohit Waghela's user avatar
4 votes
Accepted

Difference between Using the Object Model vs. Using Solutions while creating event receiver solution for SP2010

To understand this in simple terms. object model Here you are creating a class library which has event receiver code. After development you copy the dll to each sever in the farm and install it into ...
Amal Hashim's user avatar
  • 28.3k
4 votes

Difference between Using the Object Model vs. Using Solutions while creating event receiver solution for SP2010

I think that the terminology here is a bit confusing. The article you linked to describes two ways of deploying managed code - either manually, or through a solution. But I think calling the manual ...
Dylan Cristy's user avatar
  • 12.7k
4 votes
Accepted

Alternative to using (Event Receivers & Server-side object model) when working with Office 365 sharepoint

You have two options for this type of event handling when developing for SharePoint Online: Remote Events Receivers and WebHooks. Remote Event Receivers are similar to Server-Side Event Receivers but ...
Rob Windsor's user avatar
  • 12.6k
4 votes

Access is denied. inside my ItemAdded event receiver

try it as below: public override void ItemAdded(SPItemEventProperties properties) { base.ItemAdded(properties); SPUserToken systemAccountUserToken = SPContext.Current.Site.SystemAccount....
Gautam Sheth's user avatar
  • 30.9k
4 votes
Accepted

Sharepoint event handler refresh page

Your main problem is that the ItemCheckedIn event is asynchronous, meaning that it will execute after the file has been checked in and the user has been redirected. Instead, if possible in your ...
Robert Lindgren's user avatar
4 votes
Accepted

How i can associate an SPFieldUser to a SPGroup

Try: spfield.SelectionGroup = newgroup.ID; spfield.Update(); spList.Update(); MSDN: SPFieldUser.SelectionGroup property Sample: Programmatically Set "Person Or Group" Column To Select User From A ...
Juan Pablo Pussacq Laborde's user avatar
4 votes

Why the HttpContext is null within event receivers, console applications and timer jobs

Think about what HTTP is and what an HTTP context would represent. HTTP is the protocol that web servers use. Event receivers, timer jobs and console apps aren't served from a web server over HTTP. ...
Derek Gusoff's user avatar
  • 8,011
4 votes

How to stop Update event from firing when adding a document to a library

You can't actually stop the Updated event from firing. There's a full lifecycle of events that will always run, so the trick is to check for certain conditions within a given event to determine ...
Matt Jimison's user avatar
3 votes
Accepted

SharePoint document library event receiver and WebPart showing items from document library

Which event is your Event Receiver trigging on? Because the -ed receivers are asynchronous by default (which could explain the behavior you're seeing). So, either use ItemUpdating event for your ...
Robert Lindgren's user avatar
3 votes
Accepted

ItemUpdated event not firing on Document Library

As the Event Receiver works fine when triggered from the UI -> there's no problem with the ER registration itself. The code that does the Update looks "OK" (not "perfect", a few improvements can be ...
Evariste's user avatar
  • 9,751
3 votes
Accepted

Item deleting not firing from selecting item

Could you please add some more details about your environment / code? Which version of SharePoint do you use (including language and patch level)? Is it a dev. environment (where you can debug your ...
pholpar's user avatar
  • 3,190
3 votes

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

Sharepoint add-on is new standard and MSFT encourage all the customer to adopt that one. Main reason (there are many others)is Office 365, if your company want to move Office 365 then you have to ...
Waqas Sarwar MVP's user avatar
3 votes
Accepted

Does my ItemUpdated event receiver execute Synchronous OR Asynchronous if i did not define a <Synchronization> inside the element.xml

Events ending by –ing are synchronous events (before): ItemAdding, ItemUpdating, ItemDeleting. Event handlers defined for these events are executed before the operation is executed on the content ...
Cecilia's user avatar
  • 984
3 votes
Accepted

incorrect documentation about the SPItemEventProperties.OpenWeb() method inside visual studio 2012

The SharePoint terminology is vert confusing. Officially, you have the "site collections", and each site collection contains "site"s (the root site and all its sub-sites are sites). There's no "web"...
Evariste's user avatar
  • 9,751
3 votes
Accepted

Event manager error: Could not load file or assembly ........... or one of its dependencies. The system cannot find the file specified

Whereas FeatureAdmin can help you with missing feature dependencies, you may need to recurse to other means to properly remove those unwanted event receiver references, that can be at many levels (...
Tiago Duarte's user avatar
  • 5,477
3 votes

Is it possible to develop Event Receivers for sharepoint 2016 using MS Visual Studio Professional 2012

To develop Farm Solutions (which would contain event receivers) for SharePoint 2016 you need a machine with SharePoint 2016, Visual Studio 2015, and the Microsoft Office Developer Tools Preview 2 for ...
Rob Windsor's user avatar
  • 12.6k
3 votes
Accepted

Apply two event receivers on the same SPLIST

Yes, it's possible to have multiple event receivers on the same list, but why you need to do that? you can add the new event function Itemupdating to the current event receiver solution! Regarding ...
Mohamed El-Qassas MVP's user avatar
3 votes

ItemEventReceiver lifetime

I'll add my 2 cents. If event receivers were developed with care and best practices, it should run only once. And always runs on a web front end server (w3wp) in normal circumstances. When you Add/...
Denis Molodtsov's user avatar
3 votes

unable to get all the term sets under a term group inside my event receiver

Please try this once. private static TermSet RetrunTermSetIfExists(ClientContext clientContext, TermGroup termGroup, string termSetName) { clientContext.Load(termGroup.TermSets); ...
Vainktesh Kumar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible