关于dll的服务器上的错误 [英] error on server about dll

查看:114
本文介绍了关于dll的服务器上的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

描述:编译服务此请求所需的资源时发生错误。请查看以下特定错误详细信息并相应地修改源代码。



编译器错误消息:CS0246:找不到类型或命名空间名称'TestPDF'(您是否缺少using指令或程序集引用?)



来源错误:





第49行:

第50行:/ *向PDF添加密码-http://aspnettutorialonline.blogspot.com/ * /

第51行:TestPDF.HtmlToPdfBuilder builder = new TestPDF.HtmlToPdfBuilder(iTextSharp.text。 PageSize.A4);

第52行:TestPDF.HtmlPdfPage first = builder.AddPage();

第53行:first.AppendHtml(HtmlStream);

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'TestPDF' could not be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 49:
Line 50: /* To add a Password to PDF -http://aspnettutorialonline.blogspot.com/ */
Line 51: TestPDF.HtmlToPdfBuilder builder = new TestPDF.HtmlToPdfBuilder(iTextSharp.text.PageSize.A4);
Line 52: TestPDF.HtmlPdfPage first = builder.AddPage();
Line 53: first.AppendHtml(HtmlStream);

推荐答案

因此检查包含TestPDF命名空间的DLL是否可用,并引用。



取决于您的目标服务器,可以在GAC或网站的BIN文件夹中。
So check that the DLL containing the TestPDF namespace is available, and referenced.

Depending on your target server, that could be in the GAC, or the BIN folder of a web site.


这篇关于关于dll的服务器上的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆