ASP.net c# - 无法加载类型

Tom*_*len 4 c# asp.net

在我的页面上,我有:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="siteSettings.aspx.cs" Inherits="APack.admin.siteSettings" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<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>
Run Code Online (Sandbox Code Playgroud)

我的代码背后是:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace APack.admin
{
    public partial class siteSettings : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
Run Code Online (Sandbox Code Playgroud)

它抛出了异常:

Parser Error Message: Could not load type 'APack.admin.siteSettings'.
Run Code Online (Sandbox Code Playgroud)

这只是在Visual Studio中生成的,右键单击 - >新文件.它只是不起作用:(任何想法?

Phi*_*ith 10

你有没有构建应用程序?