Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.net c# - Could not load type

Tags:

c#

asp.net

On my page I have:

<%@ 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>

My code behind is:

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)
        {

        }
    }
}

It throws the exception:

Parser Error Message: Could not load type 'APack.admin.siteSettings'.

This was just produced in Visual Studio, right click - > new file. It just doesn't work :( Any ideas?

like image 634
Tom Gullen Avatar asked Dec 22 '22 00:12

Tom Gullen


1 Answers

Have you built the application?

like image 165
Philip Smith Avatar answered Jan 05 '23 15:01

Philip Smith