My problems got solved by referring to the thread at http:
What I did was to Right-click on the parent aspx file. In the pop-up menu, select Convert to Web Application. Then, re-compiled the project.
Thanks for all of reviewers who posted their comments and provided possible solutions.