Here's one other possibility, after exhausting all the above (as well as a few others scattered about the internet): make sure that your Startup object is correctly set to [Project].App in your Project Properties > Application tab.
I had renamed some namespaces, and somewhere in the process VS set the Startup object to "(not set)".