Avatar of Howard Bash
Howard Bash
Flag for United States of America asked on

SharePoint 2016 Creating an Event Receiver Issue with Event Sources

Running Visual Studio 2015 on a SharePoint 2016 dev server.  I want to create an event receiver.  I create a SharePoint 2016 empty project (Farm) and then click add new item.  I select event receiver and the drop down to select the event source does not show any of my lists or libraries.

I have run as on the Visual Studio 2015 IDE as farm admin and still not luck.

Is this a broken VS or is there a rights issue or...?

Please advise.
Microsoft SharePointMicrosoft Visual Studio

Avatar of undefined
Last Comment
Howard Bash

8/22/2022 - Mon
Piotr Strycharz

Some possible reasons:

  • You did not install feature that contains your list definitions
  • Your lists use build-in templates

You may however manually change Elements.xml in you event receiver definition to match your list template ID. This should be enough for the correct installation.
Howard Bash

I created a list using the out of the box custom list template and added a column or two.  What feature might be required?  Also,  I would think using a built in template (like custom list) should work by default.
Piotr Strycharz

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Howard Bash

The list was created from an out of the box template using SharePoint, not code.  When I launch VS,  I don't see my list.   Shouldn't I see any list/library I create from the out of the box templates listed when I add the event receiver and must specify the event source?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Howard Bash

Also,  where is the List Template ID?  Is it the list id I see in SPD?