3

我最近接管了一个应用程序的支持,该应用程序为一个离开我们公司的开发人员使用了为我们所有开发人员提供的标准模板。

当我尝试构建应用程序时,出现以下错误:

确保此代码文件中定义的类与'inherits' 属性匹配,并且它扩展了正确的基类(例如Page 或UserControl)。

这是导致错误的源代码:

MasterPage 标记

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="AppStatic.master.cs" Inherits="AppStatic" %>

后面的代码:

public partial class AppStatic : System.Web.UI.MasterPage

我已经用谷歌搜索了这个错误消息和验证类名Inherits匹配的解决方案。CodeFile

4

0 回答 0