Having problems with namespaces

C

clintonG

namespace CompanyName
{
public partial class ...
{
...
}
}

Keeps failing when trying to use a namespace on a new web site. I've tried
with page classes that inherit from System.Web.UI.Page, my own
CommonBaseClass : System.Web.UI.Page, pages that inherit the CommonBaseClass
and when using a MasterPage. I just keep getting the same error...

// no idea what this implies...
Compiler Error Message:
CS0115: 'ASP.default_aspx.GetTypeHashCode()':
no suitable method found to override
 
C

Cowboy \(Gregory A. Beamer\)

Not looking up anything, but I would find GetTypeHashCode and find out why
it is not overriding. I would also clear out any temporary ASP.NET files, as
that causes issues from time to time. Once cleared, it uis usually fine.

Here is my problem with Temporary ASP.NET files:
http://gregorybeamer.spaces.live.com/blog/cns!B036196EAF9B34A8!510.entry

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
 
G

George Ter-Saakov

Post here your <%@Page directive

I think you inheriting there from class that does not exist...

Must be something like
Inherits="CompanyName._Defaul"

George.
 
J

Juan T. Llibre

re:
I would find GetTypeHashCode and find out why it is not overriding

It's a page compiler method :

private void BuildGetTypeHashCodeMethod();
Declaring Type: System.Web.Compilation.PageCompiler

private void BuildGetTypeHashCodeMethod()
{
CodeMemberMethod method = new CodeMemberMethod();
method.Name = "GetTypeHashCode";
method.ReturnType = new CodeTypeReference(typeof(int));
method.Attributes &= ~MemberAttributes.AccessMask;
method.Attributes &= ~MemberAttributes.ScopeMask;
method.Attributes |= MemberAttributes.Public | MemberAttributes.Override;
base._sourceDataClass.Members.Add(method);
method.Statements.Add(new CodeMethodReturnStatement(new CodePrimitiveExpression(this.Parser.TypeHashCode)));
}




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
C

clintonG

You da man George. Thank you for reminding us we have to edit the .aspx on
..cs files we add the namespace to manually.

<%= Clinton
 

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