Namespace Error

F

FayHuang

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?
 
G

Guest

FayHuang,
Seems its not finding ur class..
What u can do is to open the class(Clcik on it)
And Build again..
GDLUCK!
 
F

FayHuang

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top