CS0234:类型或命名空间名称' ChatEngine'在名称空间' WebSite4'
中不存在请大家帮我解决这个错误。我正在尝试为我的项目构建一个简单的聊天室。我在网上跟踪了一个例子。我得到这个错误,告诉名称空间不存在。我已将文件附加到Im gettig的错误 global.asax.cs中无法识别ChatEngine ChatEngine.cs
中无法识别IChatEngine我只是担心因为我所没有的文件夹中的文件名为chat.dll
会导致此问题,因为我不知道如何安装此类型扩展名为.dll
Global.asax中
<%@ Application Codebehind="Global.asax.cs" Inherits="WebSite4.Global" %>
的Global.asax.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using System.ComponentModel;
using System.Web.SessionState;
namespace WebSite4
{
public partial class Global : System.Web.HttpApplication
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
public static WebSite4.**ChatEngine**.IChatEngine Engine = new WebSite4.ChatEngine.ChatEngine();
public Global()
{
InitializeComponent();
}
班级档案:
ChatEngine.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.Threading;
using System.Collections;
using System.Collections.Specialized;
namespace WebSite4.ChatEngine
{
public class ChatEngine:**IChatEngine**
{
IChatEngine.cs :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System;
namespace WebSite4.ChatEngine
{
public class IChatEngine
{