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.
LVL 1
Howard BashSenior Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Piotr StrycharzSoftware/web developerCommented:
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 BashSenior Software EngineerAuthor Commented:
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 StrycharzSoftware/web developerCommented:
If you created list from an out-of-box template you should choose out-of-box event source ('Custom List' under "Available in SharePoint' section).
Event source shows templates that you created in your project and templates available in SharePoint. Because you did not created any template (you said you started empty project), thus only built-in templates should be visible in this drop down.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Howard BashSenior Software EngineerAuthor Commented:
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?
Howard BashSenior Software EngineerAuthor Commented:
Also,  where is the List Template ID?  Is it the list id I see in SPD?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.