Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A namespace does not directly contain members such as fields or method

Status
Not open for further replies.

tinac99

Programmer
Jan 17, 2002
58
US
Hi,

I am trying to figure out the cause for this error:

A namespace does not directly contain members such as fields or method

which points to the start of the aspx page, e.g.:

<%@Page Language="C#" AutoEventWireup="true" CodeFile="Error.aspx.cs" Inherits="Error" %>

Can anyone give a clue as to how to resolve this?

Thanks,

tinac
 
the error says is all. going off the page declaration, my guess is you have both a namespace and and a class named [tt]Error[/tt].

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top