Namespace error

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

Hi

I am just practicing ASP.NET

Whenever I compile the page and try to see in the browser it shows the
following error:

The base type 'ProjectName.CodeBehindClassName' does not exist in the source
file 'CodeBehindClassName.aspx.vb'.


Project name is my project name (which is the Rootnamespace)
CodeBehindClassName is the class name of the code behind class for this page


But it does work when I remove the ProjectName and only

Inherits="CodeBehindClass"
instead of
Inherits="ProjectName.CodeBehindClass"
 
In the properties for a VB.NET project doesn't it specifiy the default
namespace for the project and then preprends that to the begginning of every
reference?

MattC
 
Hi

Thanks for your reply

In the project properties the RootNamespace is assigned as the name of the
project name.

The problem here is: everytime I build the application the VS.net (?) or
runtime adds the project name to the class name like
Inherits="ProjectName.ClassName"

so I have to remove the project name manually.

Is there any way to change the setting in VS.NET

Thank you

Gopalan
 
Back
Top