Problem:
Today, I replay the code on this page:
It works fine. Then I create a VB Web project to test it with Visual Studio 2012.
But, when I debug the aspx file, I get the error message as below:
Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Reason:
The sample code uses demo_classicasp.aspx for the aspx page. I used WebForm1.aspx in the project.
Solution:
Change demo_classicasp.aspx to WebForm1.aspx in the code.