I just added a new web form to an existing web and am getting this error Could not load type ‘CADE.Root.Default’ on this line:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CADE.Root.Default" %>
To make sure I had everything clean, I deleted the file and directories packages, bin, and obj, cleaned the project, created a new default.aspx with nothing in it (as it was created), and rebuilt the project… same error. I tried removing it and using a web form with a different name, same error. Nothing has been added to this page after it was created:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CADE.Root.Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CADE.Root
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
This is an old web, changes constantly, runs in production on 8 different servers, everything else working fine. This web is published to a file directory on the same server and that’s where I’m running it and getting the error. I also deleted bin there as well before publishing. Root is a new folder that contains the problem page and I converted it to an application in IIS. VS is at latest version 17.10.3 on Win 2019 server that’s up to date. Source has never been moved from its original location over a decade ago. Even with the error on this one page, the rest of the web pages are normal.
So, what else can I check or what more information can I provide to get this to work?