Link to home
Start Free TrialLog in
Avatar of drlewicki
drlewickiFlag for United States of America

asked on

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.
Avatar of Gagan_Jaura
Gagan_Jaura

Have you imported System.Web.UI namespace?
Avatar of drlewicki

ASKER

Where? These are crazy files I've never heard of.
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">
ASKER CERTIFIED SOLUTION
Avatar of drlewicki
drlewicki
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial