This morning I ran into a problem while trying to compile. Visual Studio 2012 gave me this error:
"Could not find 'Test.GetWebPage' specified for Main method"
The issue was I had set GetWebPage as the startup object and now the method was gone.
To fix: inside Solution Explorer, right click on the project and select "Properties...". Then under "Applicaiton" set the "Startup object:" to "(Not set)".