Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 部署时出现严重错误_C#_Asp.net_Itextsharp - Fatal编程技术网

C# 部署时出现严重错误

C# 部署时出现严重错误,c#,asp.net,itextsharp,C#,Asp.net,Itextsharp,我通常可以在本地系统上使用iTextSharp。实际上,我使用iTextsharp创建了一个简单的pdf文件,但当我将应用程序部署到服务器上时,出现以下错误: Compiler Error Message: CS0246: The type or namespace name 'iTextSharp' could not be found (are you missing a using directive or an assembly reference? 在我的项目开发过程中,我添加了一个

我通常可以在本地系统上使用iTextSharp。实际上,我使用iTextsharp创建了一个简单的pdf文件,但当我将应用程序部署到服务器上时,出现以下错误:

Compiler Error Message: CS0246: The type or namespace name 'iTextSharp' could not be found (are you missing a using directive or an assembly reference?
在我的项目开发过程中,我添加了一个对iTextSharp.dll的引用,它工作正常,但当我在web服务器上运行它时,我不知道它出了什么问题。是否有人遇到/修复了此问题?以下是我的使用声明:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using iTextSharp;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Globalization;

iTextSharp.dll是否在web服务器的bin文件夹中?是的,它在那里。我说在我部署itAny help时,它正在本地开发服务器上工作,但在生产服务器上不工作。请问?我的组织需要这个网站在未来几个小时内运行。两个字:添加参考。当然,您以前部署过第三方库吗?这不是一个与iTextSharp相关的问题,您已经确定iTextSharp在您自己的系统上工作。这是一个关于部署第三方库的问题。它是我在开发阶段正确添加的引用的副本,它正在我的本地生产服务器上工作。问题是,当我退出应用程序时,它将无法工作。若我并没有添加引用,它怎么可能在本地服务器上运行呢?布鲁诺·洛瓦吉