在ASP.NET应用程序中找不到我的BusinessLogicLayer

时间:2017-07-25 08:52:11

标签: c# asp.net vb.net

我在VS 2013中创建了一个ASP.NET Web应用程序。 我创建了一个文件夹App_Code并将一个文件夹放在'BLL'中 在那里我有一个'User.vb'文件

Imports Microsoft.VisualBasic

Imports System
Imports System.Web
Imports System.Configuration
Imports System.Data
Imports System.Web.Security
Imports DataAccessLayer

Namespace BusinessLogicLayer

Public Class User

#Region "Private Locals"

    Private _userID As Integer
    Private _NTUsername As String

#End Region

#Region "Constructors"

    Public Sub New()
    End Sub 'New

    Public Sub New(ByVal userID As String)
        _userID = userID
    End Sub 'New

#End Region

#Region "Public Properties"

    Public Property UserID() As Integer

等...

我尝试从aspx.cx页面引用该文件

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

using BusinessLogicLayer; // error on this line


namespace InvoiceRouting2017
{
public partial class InvoiceList_Cred : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblUsername.Text = Environment.UserName.ToString();
        BusinessLogicLayer.User user = new BusinessLogicLayer.User(); // error on this line
    }
}
}

但它在粗线上给出错误。

  

错误97找不到类型或命名空间名称'BusinessLogicLayer'(您是否缺少using指令或程序集引用?)

0 个答案:

没有答案