Solved

CodeFile inheritance

Posted on 2009-05-12
3
312 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

12 Experts available now in Live!

Get 1:1 Help Now