Solved

CodeFile inheritance

Posted on 2009-05-12
3
313 Views
Last Modified: 2013-12-17
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  
0
Comment
Question by:9apit
  • 2
3 Comments
 
LVL 21

Expert Comment

by:silemone
ID: 24368880
is the namespace correct in both the code behind and aspx page?
0
 

Author Comment

by:9apit
ID: 24368922
Yes I think so. Can you not tell by looking at the code I included above? If not how do I determine that?
0
 
LVL 21

Accepted Solution

by:
silemone earned 500 total points
ID: 24368956
well the easiest way would be for you to go to another page on the website that works and see if the namespace TK0990509 is being used.

If its not, change namespace accordingly or just copy and paste from working page...then change on asxp....just change TK0990590 that's before the '.' on the inherits =
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now