简体   繁体   English

无法加载文件或程序集'itextsharp,Version = 5.5.0.0,Culture = neutral,PublicKeyToken = 8354ae6d2174ddca'或其依赖项之一

[英]Could not load file or assembly 'itextsharp, Version=5.5.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies

I have used itextsharp library to generate pdf in my asp.net web application. 我已使用itextsharp库在asp.net Web应用程序中生成pdf。 It was working fine untill today when suddenly my laptop on which the application was running in the debug mode went off. 直到今天,运行调试模式的应用程序的笔记本电脑突然掉电后,一切正常。 When I switched on my laptop again and tried to run the application I satrted getting this error: 当我再次打开笔记本电脑并尝试运行该应用程序时,我感到很惊讶,收到此错误:

"Could not load file or assembly 'itextsharp, Version=5.5.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))" “无法加载文件或程序集'itextsharp,版本= 5.5.0.0,区域性=中性,PublicKeyToken = 8354ae6d2174ddca”或其依赖项之一。该参数不正确。(来自HRESULT的异常:0x80070057(E_INVALIDARG))

What could be the reason and how can I solve this? 可能是什么原因,我该如何解决? Please help. 请帮忙。

Try removing the reference and add again...!!! 尝试删除引用并再次添加... !!! Seems like the reference got removed due to improper shutdown. 好像是由于关机不当而删除了参考。

Try to clean Temporary Files of Asp.Net, sometime I've experimented strage cases of files corruption(I know this should be a comment but It's verbose): 尝试清理Asp.Net的临时文件,有时我尝试过一些文件损坏的临时情况(我知道这应该是一个评论,但很冗长):

1 - Open notepad and paste the following. 1-打开记事本并粘贴以下内容。

@ECHO OFF
ECHO Per­form­ing IIS Reset
IISRESET
ECHO Delet­ing Cache
Del /F /Q /S %LOCALAPPDATA%\Microsoft\WebsiteCache\*.*
Del /F /Q /S %LOCALAPPDATA%\Temp\VWDWebCache\*.*
Del /F /Q /S “%LOCALAPPDATA%\Microsoft\Team Foundation\3.0\Cache\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\*.*“
Del /F /Q /S “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\*.*“
ECHO Complete

2 - Save the file as a .bat file. 2-将文件另存为.bat文件。

3 - run it from the command prompt. 3-在命令提示符下运行它。

I had a backup of my project. 我已经备份了我的项目。 Restored the backup and it worked. 恢复了备份,它可以正常工作。 Thanks for all the suggestions. 感谢所有的建议。

暂无
暂无

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

相关问题 无法从程序集'itextsharp,Version = 5.5.5.0,Culture = neutral,PublicKeyToken = 8354ae6d2174ddca'加载类型'iTextSharp.text.html.HtmlParser' - Could not load type 'iTextSharp.text.html.HtmlParser' from assembly 'itextsharp, Version=5.5.5.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' 无法加载文件或程序集“Noesis.Javascript, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ae36d046c7f89f85”或其依赖项之一 - Could not load file or assembly 'Noesis.Javascript, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ae36d046c7f89f85' or one of its dependencies 无法加载文件或程序集'XXX,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一 - Could not load file or assembly 'XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies 无法加载文件或程序集'Dapper,Version = 1.8.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一 - Could not load file or assembly 'Dapper, Version=1.8.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies C#:无法加载文件或程序集'OpenPop,Version = 2.0.4.369,Culture = neutral,PublicKeyToken = null'或其依赖项之一 - C#: Could not load file or assembly 'OpenPop, Version=2.0.4.369, Culture=neutral, PublicKeyToken=null' or one of its dependencies 无法加载文件或程序集“BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null”或其依赖项之一 - Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies 无法加载文件或程序集“Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey”或其依赖项之一。 - Could not load file or assembly 'Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey' or one of its dependencies. 无法加载文件或程序集“Microsoft.Bcl.AsyncInterfaces,Version=1.0.0.0,Culture=neutral,PublicKeyToken=XX”或其依赖项之一 - Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XX' or one of its dependencies 无法加载文件或程序集'AjaxMin,Version = 4.97.4951.28478,Culture = neutral,PublicKeyToken = 21ef50ce11b5d80f'或其中一个依赖项 - Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies 无法加载文件或程序集'MySql.Data,版本= 6.9.5.0,区域性=中性,PublicKeyToken = c5687fc88969c44d'或其依赖项之一。 - Could not load file or assembly 'MySql.Data, Version=6.9.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM