Link to home
Start Free TrialLog in
Avatar of Allen Pitts
Allen PittsFlag for United States of America

asked on

CodeFile inheritance

Good afternoon expert,

When I fali to get the aspx and the aspx.cs file line up I get these errors

Error 1 'ASP.security_aspx.GetTypeHashCode()': no suitable method found to override      c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tk090509\efaaeacc\1191e53c\App_Web_ndujtr07.0.cs      1288      
Error 2      'ASP.security_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override      c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tk090509\efaaeacc\1191e53c\App_Web_ndujtr07.0.cs      1293      
Error 3      'ASP.security_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable'      c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tk090509\efaaeacc\1191e53c\App_Web_ndujtr07.0.cs      208      

I  had this working in one web site and when I copied over to the new web site it quit working.
At the aspx file the first line is
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="TK090509._Default" %>

Then at aspx.cs file there is

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TK090509
{
    public partial class _Default : System.Web.UI.Page

The name of the web site id TK090509

I am in VS 2005 do something in the back ground when it creates the files?
How can I get them lined up agin?

Thnaks.

Allen in Dallas  
Avatar of silemone
silemone
Flag of United States of America image

is the namespace correct in both the code behind and aspx page?
Avatar of Allen Pitts

ASKER

Yes I think so. Can you not tell by looking at the code I included above? If not how do I determine that?
ASKER CERTIFIED SOLUTION
Avatar of silemone
silemone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial