I created an EventReceiver that would do some action each time a List is added. Also want to restrict the handler to a specific list type.
Here is the element.xml for the event receiver. The problem is that the Event Receiver is not firing. When I remove the listTemplateId attribute, it works fine. But I really want it to work for the specific list templateid. Any help?
<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><Receivers ListTemplateId="21010"><Receiver><Name>EventReceiver2ListAdded</Name><Type>ListAdded</Type><Assembly>$SharePoint.Project.AssemblyFullName$</Assembly><Class>Namespace.EventReceiver2</Class><SequenceNumber>10000</SequenceNumber></Receiver></Receivers></Elements>