I want to add some code into my masterpage. So I removed the namespace but when I want to test it it gives this error. No idea how to fix this.
Error 2 The namespace 'Project' in 'c:\Users\Test\AppData\Local\Temp\Temporary ASP.NET Files\project\fe95a550\6aff5a12\assembly\dl3\9f54421a\e011b011_23bccd01\Project.DLL' conflicts with the type 'Project' in 'c:\Users\Test\AppData\Local\Temp\Temporary ASP.NET Files\project\fe95a550\6aff5a12\App_Web_exfemb4u.dll' 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)
{
}
}
Masterpage
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Project.master.cs" Inherits="Project" %>
Project
. as your project's name as well as you master page are nameProject
. It is creating conflict – Pepillo