drlewicki
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.Debugg erNonUserC odeAttribu te()]
public override int GetTypeHashCode() {
return 960292456;
Error 1 'ASP.admin_systems_and_ver sions_aspx .GetTypeHa shCode()':
no suitable method found to override
c:\WINDOWS\Microsoft.NET\F ramework\v 2.0.50727\ Temporary ASP.NET Files\
teststatus2production\7e35 2623\d1efa 770\App_We b_xslh3hfa .0.cs 516
I tried removing the temporary asp.net files and that did not work.
[System.Diagnostics.Debugg
public override int GetTypeHashCode() {
return 960292456;
Error 1 'ASP.admin_systems_and_ver
no suitable method found to override
c:\WINDOWS\Microsoft.NET\F
teststatus2production\7e35
I tried removing the temporary asp.net files and that did not work.
Have you imported System.Web.UI namespace?
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">
Partial class XYZ inherits System.Web.UI.Page
Put XYZ in aspx page
<@Page .............. inherits="XYZ">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.