iTextsharp在Localhost上工作但不在服务器上工作 [英] iTextsharp Working on Localhost but not working on server

查看:106
本文介绍了iTextsharp在Localhost上工作但不在服务器上工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iTextsharp 5.5.7.0将gridview导出为PDF。它在localhost上成功运行,但在服务器上无法正常运行。它给出了一个错误,因为程序集不允许部分信任的呼叫者。

请问,任何人都可以提供任何解决方案吗? 对我来说很紧急。提前谢谢!

I am using iTextsharp 5.5.7.0 to export gridview to PDF. It is successfully running on localhost but, not working properly on server. It is giving an error as "assembly does not allow partially trusted callers" .
Please,can anyone provide any solution? Its urgent for me. Thanks in advance!

推荐答案

我用谷歌搜索itextsharp程序集不允许部分信任的调用者并发现这个



http://www.aspsnippets.com/Articles/ASPNet-iTextSharp-SystemSecuritySecurityException-That-assembly-does-not-allow-partially-trusted-callers.aspx [ ^ ]



请在提问之前进行基础研究。
I googled "itextsharp assembly does not allow partially trusted callers" and found this

http://www.aspsnippets.com/Articles/ASPNet-iTextSharp-SystemSecuritySecurityException-That-assembly-does-not-allow-partially-trusted-callers.aspx[^]

Please do basic research before asking a question.


这篇关于iTextsharp在Localhost上工作但不在服务器上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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