GetTypeHashCode() compile error after conversion

Last post 02-07-2009 11:38 PM by Rick Matthys. 1 replies.

Sort Posts:

  • GetTypeHashCode() compile error after conversion

    02-07-2009, 2:40 PM
    • Member
      3 point Member
    • crickets
    • Member since 03-18-2007, 12:41 AM
    • Posts 9

    Would anyone know what might be causing the following compile errors?

    I just converted a project form VS 2003 to VS 2005.

    Error    1    'ASP.parent_newsletters_aspx.GetTypeHashCode()': no suitable method found to override    c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30\28b4c3da\1ad82054\App_Web_tfsdbvxg.4.cs    3219   

    Error    2    'ASP.parent_newsletters_aspx.ProcessRequest(System.Web.HttpContext)': no suitable method found to override    c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30\28b4c3da\1ad82054\App_Web_iohkgnj9.2.cs    3224   

    Error    3    'ASP.parent_newsletters_aspx' does not implement interface member 'System.Web.IHttpHandler.IsReusable'    c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30\28b4c3da\1ad82054\App_Web_iohkgnj9.2.cs    452   


    I tried deleteing all the files in the C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\admox30 folder, but that didn't seem to help.

     

  • Re: GetTypeHashCode() compile error after conversion

    02-07-2009, 11:38 PM
    Answer
    • Contributor
      2,453 point Contributor
    • Rick Matthys
    • Member since 01-20-2009, 10:57 AM
    • Oregon
    • Posts 353

    Hello crickets, 

    Since you're already going thru a conversion process, you should convert to 2008!  There's a big difference and it'll make your life easier down the road.  But assuming you can't....

    The most common reason you get these error is when inherits attribute in you .aspx page directive is not the same as the class name in your code behind.

    <%@ Page Language="C#" CodeFile="Default.aspx.cs" Inherits="aaaaaaa" %>

    aaaaaaa  must be the name of the class in the code behind.  If you have a namespace in the code behind, the inherits attibute must be "the.namespace.aaaaaaa"

    ~Rick

     

     

    Please mark the post as ANSWER if it helps you

    Disclaimer: Just my opinion. Not my employer or anyone else....
Page 1 of 1 (2 items)