Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

Rate It (2)

Last post 09-18-2009 6:04 AM by tmvsivakumar. 21 replies.

Sort Posts:

  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    10-20-2008, 6:41 PM
    • Member
      4 point Member
    • HutchDude
    • Member since 10-20-2008, 10:26 PM
    • Posts 2

    Hi Lee,

    Thanks for taking the time to post to this thread so much. I'm having the same problem, however my issue is that the code runs fine on my dev machine but when I copy it to the server it throws the GetTypeHashCode error ... "no suitable method found to override." My page inherits from System.Web.UI.Page, as you can see...

    .aspx:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MasterList.aspx.cs" Inherits="MasterList" MasterPageFile="MasterPage.master" %>

     .cs:

    public partial class MasterList : System.Web.UI.Page
    { ... }

    The server's .Net temp files tree does not contain anything for my app, since all I did was copy my code to a folder under the web root. Presumably I need to change an IIS setting, but what could it be? The server is Win2k with IIS6 without FP extensions. Other .Net apps are running on this machine, written by previous programmers. This is a system where the programmers have been doing their own admin. I'm the new guy and nobody who is still around knows much about configuration. Your basic new employee ramp-up nightmare, but also full of Hero opportunity.

  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    10-20-2008, 8:25 PM
    • Contributor
      6,366 point Contributor
    • Lee Dumond
    • Member since 11-03-2004, 2:51 PM
    • Decatur, IL USA
    • Posts 1,168

     That is an odd one. Some questions:

    1. Are you sure your MasterPage is inheriting from System.Web.UI.MasterPage?

    2. Are there any namespaces involved here? For example, if your MasterList page class were defined in a namespace called "HutchDude", you'd have to have Inherits="HutchDude.MasterList" in the page declaration.

    3. How are you deploying to the server? XCopy? FTP? Deployment project?

  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    10-21-2008, 8:50 AM
    • Member
      4 point Member
    • HutchDude
    • Member since 10-20-2008, 10:26 PM
    • Posts 2
    The Master page is inheriting from System.Web.UI.MasterPage. I deployed by simple drag and drop to a drive mapped to a network share. The problem has gone away but I'm not sure why. Initially the line <authentication mode="Windows"/> in my app's default web.config generated by VS was causing an error. Since all I needed out of the config file was a connection string I moved the connection string to the existing web.config in the root and got rid of mine. That got me to the GetTypeHashCode error. I had deployed these files into a folder that already contained some classic ASP code but no .Net code. I moved my app to a folder that contains some working .Net code, and everything works now. Presumably it's a Virtual Directory configuration issue or something... We're getting a new guy next week who has a great deal of .Net and IIS config experience. Since my thing works where it is for now, I think I will save this for him to chew on.
  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    12-01-2008, 3:48 PM
    • Member
      4 point Member
    • acarlson
    • Member since 12-01-2008, 8:44 PM
    • Michigan, USA
    • Posts 2

     I was just getting this error and after doing a Clean Solution, closing and re-opening the solution in Visual Studio (2008), and clearing the folders in the "Temporary ASP.NET Files" directory I still could not get it to compile. What ended up being the problem was the class name in the .cs file did not match the Inherits in the .aspx file.

     .aspx file: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PopupMultipleUploads.aspx.cs" Inherits="PopupMultipleUploads" %>

     .cs file:  public partial class PopupMultipleUpload : System.Web.UI.Page

     The class name in the code-behind was missing an "s" on the end. I don't know how it got changed but after I added the "s" it compiled fine. So you may want to make sure your class names match up.

  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    02-21-2009, 3:46 PM
    • Member
      9 point Member
    • sondlerd
    • Member since 11-15-2006, 2:46 PM
    • Posts 3

    I solved this as well by simply removing the namespace in my cs page.  This might not be a suitable solution but I just added a using statement to my cs instead.  Strange error.

  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    04-11-2009, 2:29 PM
    Hi I was getting same error. I developed site using visual studio 2008 but version 2.0. I tried all tricks in posts nothing help. I finally open visual web developer 2005, Add new item -> web page. Copy paste all code. It works fine. I dont knw why the problem was but I solved this way.
    Gaurav Mahajan
    ASP.NET Website Developer & Designer
    Amritsar http://www.pixelseyeanimation.com/
    http://www.pixelseyeanimation.com/sushilindia
    Filed under:
  • Re: Error 35 'ASP.admin_managepolls_aspx.GetTypeHashCode()': no suitable method found to override

    09-18-2009, 6:04 AM
    • Member
      6 point Member
    • tmvsivakumar
    • Member since 08-25-2006, 7:11 AM
    • Posts 8

    Hi Christolo,

    You might have used the same class as you used in your previous version. I too faced the same error.

    I have changed the class name and compiled. It compiled successfully. Try the same.

    Regards

    Siva.

Page 2 of 2 (22 items) < Previous 1 2