asp.net页Inherits写错的错误

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MainFrame.aspx.cs" Inherits="MainFrame1" %>

实际错误本身很简单,但是由于错误后,.net本身报错并不是报Inherits写错,而是下面的一些错误,头脑清醒的时候很容易发现,但是当头脑不是很清楚的时候,往往因为这个小错误找很久,所以在这里提醒一下:)

 

下面是错误提示

错误 1 “ASP.systemframe_mainframe_aspx.GetTypeHashCode()”: 没有找到适合的方法来重

写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET

Files\usermanagementweb\67afeddc\864b3578\App_Web_eotkz3oc.8.cs 182 
错误 2 “ASP.systemframe_mainframe_aspx.ProcessRequest(System.Web.HttpContext)”:

没有找到适合的方法来重写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary

ASP.NET Files\usermanagementweb\67afeddc\864b3578\App_Web_eotkz3oc.8.cs 187 
错误 3 “ASP.systemframe_mainframe_aspx”不会实现接口成员

“System.Web.IHttpHandler.IsReusable” c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

\Temporary ASP.NET Files\usermanagementweb\67afeddc\864b3578\App_Web_eotkz3oc.8.cs 122

原文地址:https://www.cnblogs.com/cuihongyu3503319/p/1337877.html