Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Event Receiver does not fire when item added/updated in Document Library

$
0
0

So i've got a document library event receiver set on item added/updated. In Event Elements.xml file i already setdoc lib templateid:

<Receivers ListTemplateId="101">

I am adding a file to the document library through the UI "Add document" and expecting it to fire an event but its not working :(  I even can't debug because it doesnt hit any of my breakpoints.

What's funny is that when i change ListTemplateId to any other Id e.g. 100 (Generic List) and add item on that list - event starts...

I also already tried to find an unexpected error in logs but without success.

I DONT have any custom code at the moment and didnt add any other custom libraries. Just created an empty sharepoint project -> added event receiver -> assigned to document library and when i wait for a hit on breakpoint on item added/updated/deleted(it doesnt matter i already tried them all) IT DOES NOT run :(



Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>