Here's the deal, I have various event receivers registered to a document library:
- ItemAdded
- ItemAdding
- ItemFileMoved
- ItemUpdating
These event receivers work as expected in all cases, APART FROM copying and pasting into explorer view. It's worth noting that the event receivers do fire off when MOVING from explorer view into explorer view!
Has anyone else experienced this? Is there a way to fix this?
Workaround:
- Create a SharePoint Designer Workflow, attach it to your Doc Library.
- Make it run when the item is changed or updated
- Give it a simple step with the following Action (no conditions)
- Update field in the Current Item
- Select the "Title" field, set it to "Changed".
You are probably able to capture the events from your .NET logic now.
The problem you are encountering is one of the most annoying features of SharePoint, for some reason it not only overlooks our metadata requirements but also the events you are trying to capture when using the explorer view or unc path. I beleive the only workaround for this is to create a WWF workflow.
If you are thinking of keeping the drag and drop functionality, and losing the Explorer view, you might want to look at this..
来源:https://stackoverflow.com/questions/1486448/sharepoint-list-event-receivers-not-firing-when-copying-and-pasting-using-explor