473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Namespace error

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"
Nov 19 '05 #1
2 1014
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
"msnews.microsoft.com" <go***************@btinternet.com> wrote in message
news:OC**************@TK2MSFTNGP15.phx.gbl...
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"

Nov 19 '05 #2
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

"MattC" <m@m.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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
"msnews.microsoft.com" <go***************@btinternet.com> wrote in message
news:OC**************@TK2MSFTNGP15.phx.gbl...
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"


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
2
by: Bryan Parkoff | last post by:
MPU_Group is the namespace and MPU is the struct. Three members: A, B, and C are in the MPU struct inside MPU_Group namespace. I tried to compile, but it shows error saying MPU struct is not...
6
by: clinton__bill | last post by:
Hi, I usually use "using namespace <namespace_name>" to reference a namespace. Today I run across a code, in its header file it has this, namespace SP1{ class C1; } While SP1::C1 is a...
2
by: Tony Johansson | last post by:
Hello! I'm reading a book about C++ and there is something that I don't understand so I ask you. Below I have the text from the book and the code from the file where main is located and some...
0
by: Tressa | last post by:
Sorry to be such a novice about this but..... I have a windows service. It contains two separate files. Both have the same namespace name. I need to pass "bDisplay" into the other file. I am...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
12
by: Plop69 | last post by:
need some help on following: xml file 1 <TEST xmlns="http://test" > <OK>mlkddflmkj</OK> </TEST>
3
by: sjt003 | last post by:
I have been developing web apps in Visual Studio 2003, but since the other developers in my office don't use Visual Studio, I may have to stop too unless there is an efficient way for them to...
5
by: michael.d.pedersen | last post by:
Hello group, I am new to Visual C++ 8 and have a seemingly trivial problem using namespaces. The scenario: I have two classes, TestClass1 and TestClass2, in the namespace Test. I would like to...
2
by: sushilkaushik | last post by:
In my VC++ project (using Visual Studio 2005) I have two DLLs : CommonClasses.dll and CheckIn.dll I added both of them in exactly the same way. First, CommonClesses and then CheckIn, using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.