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
Solved

CodeFile inheritance

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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