简体   繁体   English

Asp.Net与Web应用程序项目一起使用DLL

[英]Asp.Net using dll with web application project

i am developing an asp.net web application project.i have add a dll file with add reference command but i get error when i have said it Using namespace_name. 我正在开发一个asp.net Web应用程序project.i使用add reference命令添加了一个dll文件,但是使用namespace_name表示该错误。

Note : i tried as Asp.Net Web site.But problem is continue.i checked framework version. 注意:我尝试作为Asp.Net网站。但是问题是continue.i检查了框架版本。

C# : C# :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DenemePc; <-- dll file

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

    }
}

ERROR: 错误:

'DenemePc' The type or namespace name could be found (are you missing a using directive or assembly reference?) 'DenemePc'可以找到类型或名称空间名称(是否缺少using指令或程序集引用?)

I believe I have answered a similar question ASP.NET => Compiler Error Message: CS0246: The type or namespace name 'HtmlAgilityPack' 我相信我已经回答了类似的问题ASP.NET =>编译器错误消息:CS0246:类型或名称空间名称'HtmlAgilityPack'

Please set the Copy Local property to True on the Referenced DLL of DenemePc 请在DenemePc的引用的DLL上将“ Copy Local属性设置为True

This will copy the dll to the output directory of your application 这会将dll复制到应用程序的输出目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM