aspx file cannot load page class in codebehind

  • Thread starter Thread starter Juan Romero
  • Start date Start date
J

Juan Romero

Guys,
I am a bit new to working with ASP.NET Pages.

When I make a new page using Visual Studio, some code is generated by
default. One of the lines generated by default contains the @ Page
directive, which declares the page inherits the page class from the
codebehind class:

<%@ Page inherits = "Application.PageClass" %>

where Application and page class represent the names of the application and
the page class respectively.

This works fine when I work in the root directory, but when I create another
folder and make a new page in there, when I compile and run it in a browser,
it yields the following error:

Could not load type 'Application.PageClass'.

Any idea of why this happens? I have used the "Class View" window and the
Page classes are indeed there under the application, but it just wont take
it if it is on a different folder.

Anyone knows how to fix it? am I doing something wrong?

Thanks.
 
Your post went unanswered. Have you resolved this issue? If you still need
help, please post the original question with your request.
 
Back
Top