troubleshooting Question

SharePoint EventReceiver tying to a specific Document Library (Custom)

Avatar of BKennedy2008
BKennedy2008 asked on
.NET ProgrammingMicrosoft SharePoint
3 Comments1 Solution2586 ViewsLast Modified:
I want to take an event receiver and tie it to a specific Document Library that is created on about 10 out of 20 sites called "ApprovedDocuments". The eventReceiver works fine, however, when I modify the elements.xml from   <Receivers ListTemplateId="101"> to
<Receivers ListUrl="Lists/ApprovedDocuments"> from instructions on how to tie to a specific list, I get the follwing error when I deploy the testDB

Error      1      Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>
            0      0      TestDB

Any ideas I can look for in this, or another way to tie a eventreceiver to a specific list?
Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros