Solved

CodeFile inheritance

Posted on 2009-05-12
3
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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