Just had the same issue. Somehow the page got excluded from my solution.
I just had to:
Open Solution Explorer -> Click the icon for "show all files" -> Right click on my page -> click "include in project" -> build solution