• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 729
  • Last Modified:

no suitable method found to override

I have this error in asp.net c# code that I don't normally see. Here it is...

        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public override int GetTypeHashCode() {
            return 960292456;
 

Error      1      'ASP.admin_systems_and_versions_aspx.GetTypeHashCode()':
no suitable method found to override      
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
teststatus2production\7e352623\d1efa770\App_Web_xslh3hfa.0.cs      516

I tried removing the temporary asp.net files and that did not work.
0
drlewicki
Asked:
drlewicki
  • 2
  • 2
1 Solution
 
Gagan_JauraCommented:
Have you imported System.Web.UI namespace?
0
 
drlewickiAuthor Commented:
Where? These are crazy files I've never heard of.
0
 
Gagan_JauraCommented:
Put the name of the partial class (aspx.cs) in the inherits attribute of Page tag in aspx page. For e.g
Partial class XYZ inherits System.Web.UI.Page
Put XYZ in aspx page
<@Page .............. inherits="XYZ">
0
 
drlewickiAuthor Commented:
I went another way with the code
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now