473,473 Members | 2,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Namespace Error

Does anyone know how to debug this problem?

My project compiles without any errors. But when I try to bring up
the page in the browser, I get this error:
"Could not load type 'Website.Company.ContactUs'."

Which refers to this line in my HTML:
<%@ Page language="c#" Codebehind="ContactUs.aspx.cs"
AutoEventWireup="false" Inherits="Website.Company.ContactUs" %>

My code-behind has:
namespace Website.Company
{
/// <summary>
/// Summary description for ContactUs.
/// </summary>
public class ContactUs : System.Web.UI.Page

I'm not sure why the page is having problems. Is there another place
in the code that controls the namespace?
Nov 18 '05 #1
2 1010
FayHuang,
Seems its not finding ur class..
What u can do is to open the class(Clcik on it)
And Build again..
GDLUCK!
"FayHuang" wrote:
Does anyone know how to debug this problem?

My project compiles without any errors. But when I try to bring up
the page in the browser, I get this error:
"Could not load type 'Website.Company.ContactUs'."

Which refers to this line in my HTML:
<%@ Page language="c#" Codebehind="ContactUs.aspx.cs"
AutoEventWireup="false" Inherits="Website.Company.ContactUs" %>

My code-behind has:
namespace Website.Company
{
/// <summary>
/// Summary description for ContactUs.
/// </summary>
public class ContactUs : System.Web.UI.Page

I'm not sure why the page is having problems. Is there another place
in the code that controls the namespace?

Nov 18 '05 #2
Patrick,
Thanks for the tip, but I'm still getting the same error. Did I open
the class correctly? I just selected View -> Class View, and then
double-clicked on the Company -> ContactUs class, which just took me
to the code-behind. Then I recompiled as you instructed, tried to
display the page in a browser, and got the same error.
Nov 18 '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: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.