Event Receivers are triggered by certain events on either a SPWeb, SPList or SPListItem.
0
votes
1answer
153 views
Reporting Services Subscriptions doesn't fire Event Receivers
I have a SPItemEventReceiver on a SharePoint library which renames added files. Normally this works fine (Upload from website / WebDav).
There is also a report server subscription which drops pdf's ...
0
votes
1answer
386 views
Help with Blog EventReceiver, not firing
Ok so I have a blog site and I need to change the name of the author of each post to 'Anonymous' after he saves the post. I created an EventReceiver project in Visual Studio and gave the URL ...
1
vote
1answer
556 views
Unable to attach an SPEmailEventReceiver to my list
I'm trying to link an SPEmailEventReceiver to my document library..
First of all I created the EventReceiver using the Visual Studio 2010 Add -> Event Receiver -> List Email Events -> Document ...
0
votes
1answer
414 views
How to enable an Event Handler to intercept upload from email in document library
I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
0
votes
0answers
114 views
“Wrapper” List Template for use with Site-scoped Event Receivers?
I am building a SharePoint solution that will allow for the dynamic provisioning of sub-sites off of a root site in a site collection. Each sub-site has a set of lists (built from discussion list ...
0
votes
1answer
167 views
delete feature using event receiver on a farm feature
there is a farm feature and there is a web-scoped feature. web feature does stuff on multiple sites. If ever i want to get rid of the feature on all sites, I have a farm feature that has on ...
0
votes
2answers
447 views
“Thread abort exception” in event receiver after adding a solution?
I am developing an event receiver for the web provisioned event. It does quite a few things, culminating to add and deploying a solution and activating a feature from it.
When I do the following:
...
1
vote
1answer
268 views
Add solution from within event receiver - how to sort out “access denied” errors?
I'm handling the WebProvisioned event in order to add and deploy a solution that's relevant to the site being created. The solution is being created dynamically based on parameters of the site but for ...
0
votes
1answer
95 views
How can I get custom CSS to load into a publishing subsite?
I have a SharePoint 2010 farm that will have thousands of site collections in it. Each site collection will be a personal externally facing publishing site collection for individual employees. Each ...
0
votes
0answers
47 views
Deactivate web staplee features on deactivation of farm stapler feature
i have a farm level stapler feature that activates themeing feature(web-scoped) on every new instance of web. I wanna be able to deactivate all the themeing feature on all the new sites created if I ...
1
vote
1answer
142 views
Staple onto MyContent
I made my farm level stapler and my site level staple features, for SPSPER#0 it fires on MySite creation, so I presumed SPSMSITEHOST#0 would be MyContent, but nothing gets fires at all.
I set the ...
0
votes
1answer
133 views
list template copy code-behind is not working
My goal here is to create a list template with code-behind on my server and copy it to a completely different Sharepoint server. The problem is that my server has Visual Studio 2010 while the other ...
0
votes
1answer
426 views
Error loading and running event receiver Could not load file or assembly CUSTOM DLL The system cannot find the file specified.
I have created an EventReceiver that references a library I created in the same Solution (2 different projects). Whenever I add an item to the associated list I see this error in the log:
...
0
votes
1answer
48 views
SPEmailEventReciever - is this avaliable in sandbox solutions
I was wondering if you could write an sandbox solution using the SPEmailEventReciever class. In the SharePoint SDK documentation it says that the SPEmailEventREciever is not avaliable for use with a ...
1
vote
2answers
97 views
Is there anyway I can find out if user uploaded multiple items in ItemAdded Event
I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading.
Normally what happens is when a user adds a item they are taken to ...
1
vote
1answer
114 views
Large update in Event Receiver
I wonder how should I make a large update in Event Receiver by executing it in other thread. Normally it would look like that:
public override void ItemUpdating(SPItemEventProperties properties)
{
...
1
vote
0answers
74 views
How do I prevent Office applications to update one of my SPListItem properties?
I have a document library in SharePoint whith a custom content type. There is one custom field that is set by an item added event receiver each time a new document is uploaded.
My problem occurs when ...
0
votes
1answer
213 views
copy an event receiver to a different server
My work is requiring me to create an event receiver for an itemAdding event for an existing list on a Sharepoint Server. My problem is that while I have access to a Sharepoint Server, I do not have ...
0
votes
2answers
137 views
Generating the HTML code of a Server Page in the ItemAdded Event Receiver
In our ItemAdded event receiver code, we would like to call
Server.Execute(new MyPage(), writer, false)
to statically generate the HTML code for MyPage and store it in the RootFolder so client can ...
0
votes
1answer
134 views
What is the SPListTemplateType or SPListTemplateId or ListUrl of ACL of an item?
What is the SPListTemplateType or SPListTemplateId or ListUrl of the list that appears when clicking on the item permission button on the edit control block or the button on the ribbon of any item ...
1
vote
2answers
517 views
How to use SharePoint notification from Event Receiver
I have an event receiver, which fires when item is being deleted ( ItemDeleting event ). I have some logic that checks whether item can be deleted or not, and if it can't, I need to show notification ...
0
votes
1answer
27 views
Possible to get a list of scheduleditems?
Is it possible to get a list of ScheduledItems from SharePoint in C# (event receiver)?
For example, I've created a ScheduledItem and called the .Schedule() method. I'd expect this ScheduledItem to ...
0
votes
1answer
482 views
The URL is invalid. It may refer to a nonexistent file
public override void ItemCheckingIn(SPItemEventProperties properties)
{
base.ItemCheckingIn(properties);
#region Automatic Scheduling
ScheduledItem scheduledItem = null;
...
1
vote
1answer
98 views
Is it possible to check if a page is scheduled for publishing?
I can create a ScheduledItem in an event receiver, but how do I check if a list item is scheduled?
What I've tried:
IsScheduledItem method (ScheduledItem class) - but this method: "...confirms that ...
1
vote
1answer
149 views
Email EventReciever
I have a massive problem that I need to solve. I have a document library that is a catch all dumping ground for emails that are forwarded there by our users out in the field. With in these emails are ...
1
vote
1answer
242 views
Automatically schedule a page on publish
When the user publishes a page, I need to automatically schedule it with a start date being as soon as possible, and the end date being a year from the start date. I've tried the event receiver ...
0
votes
2answers
360 views
Event Receiver which tries to create a Prefix will throw Security Exception
I'm trying to use an Event Receiver on a List to create a Managed Path with Wildcard-inclusion in the parent WebApplication.
I tried to handle it with the following code (reduced to show the idea)
...
2
votes
1answer
173 views
Will feature receiver get activate if user has no permissions to a site?
Here's what I need...User does not have access to a site (http://myserver/sites/MySite). When user tries to access they are redirected to ugly AccessDenied.aspx.
I was researching and found that ...
0
votes
1answer
76 views
Using Sharepoint UI is there a way of knowing what event receiver is installed against a library
Using Sharepoint UI is there a way of knowing what event receiver is installed against a library?
I have a event receiver that adds installed against document library and all it does is to set item ...
0
votes
0answers
331 views
Failed to retrieve the list schema after creating splist in Feature EventReceiver
I created Sharepoint List programmatically in FeatureActivated EventReceiver. When i try to open "Content Management"(_layouts/sitemanager.aspx) page I get error.
There is log:
08/16/2012 ...
0
votes
3answers
221 views
an event receiver does not allow to add item that already exists
i want an event handler for document library (itemadding and itemChekingIn) that does not allow to add a file to that document library that already been in there.does anyone can give me hint for ...
0
votes
2answers
306 views
Differentiate in ItemUpdated (ER) if file was edited or overwritted
I've an ItemUpdated Event Receiver, and I need to make different operations depending if the file was updated throw UI or overwritted. Is there any internal field that reflects this 2 different ...
0
votes
1answer
415 views
ItemAdded event running with user permissions (SharePoint 2010)
My understanding is/was that by default asynchronous event receivers ran under system permissions, while synchronous event receivers run under user permissions -- and that ItemAdding is synchronous, ...
0
votes
1answer
139 views
List versioning detect field level changes
I need to detect changes with each on each item update, )but i don't want to use the before, after properties )
My question is:
If i enable list versioning can i diff 2 versions to detect changes, ...
0
votes
2answers
587 views
Single line of text field validation in Sharepoint 2010 list
I have single line of text field in a Sharepoint 2010 list. I need to validate the particular field. The user will enter the number by starting with I or F. How do I validate the field if the user ...
0
votes
1answer
213 views
Event Receivers on Add/Remove Users
I need some design ideas for a requirement to audit when uses are added/removed from an object. I need to collect the user doing the add/remove, date time, and reason for adding. I need to do this to ...
1
vote
0answers
611 views
List ItemUpdated Event not firing when updating item from code
I have a problem with my eventreceiver. It is set to fire on updating item from a list, and works very good when I update that item from Sharepoint's web UI. However I have some code that goes through ...
2
votes
2answers
186 views
Add file watermark as it's uploaded
I've been trying to add a watermark to files as they are uploaded to SharePoint.
I tried using several events:
ItemAdding, ItemUpdating, ItemCheckedIn.
In ItemUpdating and ItemCheckedIn the file is ...
0
votes
1answer
226 views
Event Receiver Item Added for Multiple Files uploaded
I am trying to add few details for a item that is added to a list to SQL database table using a stored procedure, it works perfectly but when I upload multiple files it adds all of the items into the ...
0
votes
1answer
675 views
Event receiver for a custom List
I created a custom Event Receiver using WSP builder, and in elements.xml file i have given the ID of list which i find in elements.xml of List definition of particular list.
I also activated the ...
1
vote
1answer
172 views
Is it possible to have the round robin logic in the sharePoint list 2010?
Is it possible to have the round robin logic in the sharePoint list?
I have two lists in SharePoint 2010. In List A i have Assigned to field column(people or user group). In List B i have two fields ...
0
votes
1answer
1k views
How to assign a particular column values of sharepoint List A 2010 from sharepoint ListB 2010
I have two list in sharepoint 2010. In List A i have Assigned to field column(people or user group). In List B i have two fields Name and Email id column. I need the email id values of List B should ...
2
votes
1answer
1k views
ItemUpdating not saving field values
A user has a list that has a couple fields that are often updated. He wants to store the prior values in some other fields on the item when the item is updated (yes, I know versioning would be ...
0
votes
1answer
110 views
Visual Studio 2010 opens “Create New Site” page in browser when I run “Start Debugging” instead of the site I am trying to debug
I am an Office 365 user and fairly new to Sharepoint. I am trying to write a sandboxed solution for SharePoint online. To do this, I have setup a local developer environment and am currently trying ...
1
vote
1answer
198 views
Why does my Event Receiver (sandboxed) not work on Sharepoint Online, but works perfect on premise
using System;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Workflow;
namespace ...
0
votes
1answer
119 views
Using an event receiver to validate a page
I need to evaluate certain properties of a page whenever it's being saved/published as part of a custom validation I need to implement.
I notice properties has both Cancel and ErrorMessage properties ...
1
vote
2answers
456 views
Attach an event receiver to profile property update
Do someone know if it's possible to attach an event receiver to profile updates?
The goal would be to update an external system (such as a CRM) when a user is updating his profile.
1
vote
0answers
119 views
How to trigger event receiver on library when adding items to library through silverlight control?
I created an event receiver which triggers when an item added to the library.And it is working fine when i am adding items at library level(By clicking upload in ribbon controller of library).But the ...
2
votes
2answers
456 views
Dispose of SPItemEventProperties at the end of an event receiver?
Is there any need to call
properties.Dispose();
at the end of an event receiver? Would this prevent memory leaks? Is this unnecessary? Is it best practice?
2
votes
0answers
109 views
Site is Provisioned but Content Type List is still empty
I have this feature that I am trying to run in order to configure a site, this feature among other things creates pages based on content types, etc. The problem I am facing is that everytime i am ...
