我想在我的母版页中添加一些代码。因此,我删除了命名空间,但当我想测试它时,它会出现这个错误。不知道如何修复。
Error 2:'c:\Users\Test\AppData\Local\Temp\Temporary ASP.NET Files\project\fe95a550\6aff5a12\assembly\dl3\9f54421a\e011b011_23bccd01\Project.DLL'中的命名空间“Project”与'c:\Users\Test\AppData\Local\Temp\Temporary ASP.NET Files\project\fe95a550\6aff5a12\App_Web_exfemb4u.dll' 中的类型“Project”冲突 c:\Users\Test\AppData\Local\Temp\Temporary ASP.NET Files\project\fe95a550\6aff5a12\App_Web_hrdlxq5l.4.cs 154
Masterpage.cs
public partial class Project: System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
母版页
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Project.master.cs" Inherits="Project" %>