相关文章推荐
活泼的风衣  ·  Use TcpClient and ...·  11 月前    · 
无聊的长颈鹿  ·  Excel VBA ...·  1 年前    · 
有情有义的枇杷  ·  git log oneline show ...·  1 年前    · 

C# DLL异常System.IO.FileNotFoundException:Could not load file orassembly BouncyCastle.Crypto系统找不到指定的文件

最新推荐文章于 2023-09-18 11:25:58 发布
最新推荐文章于 2023-09-18 11:25:58 发布 阅读量7.2k

异常信息:System.IO.FileNotFoundException:“Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.10.0, Culture=neutral, PublicKeyToken=0e99375e54769942'. 系统找不到指定的文件。”

我是引入动态链接库而引发的这个异常

刚开始我认为是生成的解决方案的事,找了很多文章也有说是dll文件路径的错误,都试过还是不行,最后发现是少了一个NuGet程序包   把Portable.BouncyCastle程序包下载下来就可以了

在项目的依赖项中右键→管理NuGet程序包

在弹出的对话框中输入Portable.BouncyCastle  点击右方的下载按钮

下载完成后在已安装里可以查看

C# DLL异常System.IO.FileNotFoundException:Could not load file orassembly BouncyCastle.Crypto系统找不到指定的文件 异常信息:System.IO.FileNotFoundException:“Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.10.0, Culture=neutral, PublicKeyToken=0e99375e54769942'. 系统找不到指定的文件。”
System. IO . FileNotFoundException : C ould not load file or assembly 'Microsoft.ReportViewer.WinForms, Vers io n=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统 不到 指定 文件 File name: 'Microsoft.ReportViewer.WinForms, Vers io n=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at SupSystem.fr_Print..ctor()
System. IO . FileNotFoundException :“未能加载 文件 或程序集“GxIAPINET. dll ”或它的某一个依赖项。 不到 指定 的模块。”
VS2017调试Android出现"System. IO . FileNotFoundException : C ould not load file or assembly 'Mono.Posix, Ve
使用visual stud io 2017调试安卓程序,遇见 "System. IO . FileNotFoundException : C ould not load file or assembly 'Mono.Posix, Vers io n=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its depende
这个问题定位了大半天,先坐下记录。可能每个人遇到的问题情况不一样,我先说下我出现的问题解决方案:将mkdir() 改成mkdirs() ,至于为什么,后面介绍。 今天测试 我,说项目中测试录像直接crash了。我一脸懵圈,之前不都好好的吗?这个项目之前别人在负责,之前也测试过没问题。负责人离职后代码移交给我了,怎么到我手上就有问题?我很郁闷的重现了下,还真是的!!!我思考了一下,我没改这块代码啊,然后我update一份同事最后提交的版本代码,发现也有这个问题,这让我更不理解了,为啥?为啥?为啥? 这块代码一直没动,测试手机也是一样的,不应该啊,最后我猜测可能是升级AS造成的,后面有空再去证实吧
c# 程序Release版本复制到其他没有Visual Stud io 环境下 直接 异常 报错形如: “C ould not load file or assembly 'System.ValueTuple…” 其原因可能是因为机器上有不同版本的 Dll 在新版本Visual Stud io 中CSPROJ会有语句 这样启用了“自动绑定重定向” Reference: https://docs.mic...
■Generat io n and parsing of PKCS#12 file s. ■X.509: Generators and parsers for V1 and V3 certificates, V2 CRLs and attribute certificates. ■PBE algorithms supported by PBEUtil: PBEwithMD2andDES-CBC, PBEwithMD2andRC2-CBC, PBEwithMD5andDES-CBC, PBEwithMD5andRC2-CBC, PBEwithSHA1andDES-CBC, PBEwithSHA1andRC2-CBC, PBEwithSHA-1and128bitRC4, PBEwithSHA-1and40bitRC4, PBEwithSHA-1and3-keyDESEDE-CBC, PBEwithSHA-1and2-keyDESEDE-CBC, PBEwithSHA-1and128bitRC2-CBC, PBEwithSHA-1and40bitRC2-CBC, PBEwithHmacSHA-1, PBEwithHmacSHA-224, PBEwithHmacSHA-256, PBEwithHmacRIPEMD128, PBEwithHmacRIPEMD160, and PBEwithHmacRIPEMD256. ■Signature algorithms supported by SignerUtilities: MD2withRSA, MD4withRSA, MD5withRSA, RIPEMD128withRSA, RIPEMD160withRSA, RIPEMD256withRSA, SHA-1withRSA, SHA-224withRSA, SHA-256withRSAandMGF1, SHA-384withRSAandMGF1, SHA-512withRSAandMGF1, SHA-1withDSA, and SHA-1withECDSA. ■Symmetric key algorithms: AES, Blowfish, Camellia, CAST5, CAST6, DESede, DES, GOST28147, HC-128, HC-256, IDEA, NaccacheStern, RC2, RC4, RC5-32, RC5-64, RC6, Rijndael, Serpent, Skipjack, TEA/XTEA, Twofish, and VMPC. ■Symmetric key modes: CBC, CFB, CTS, GOFB, OFB, OpenPGPCFB, and SIC (or CTR). ■Symmetric key paddings: ISO10126d2, ISO7816d4, PKCS#5/7, TBC, X.923, and Zero Byte. ■Asymmetric key algorithms: RSA (with blinding), ElGamal, DSA, ECDSA. ■Asymmetric key paddings/encodings: ISO9796d1, OAEP, and PKCS#1. ■Digests: GOST3411, MD2, MD4, MD5, RIPEMD128, RIPEMD160, RIPEMD256, RIPEMD320, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, Tiger, and Whirlpool. ■Signer mechanisms: DSA, ECDSA, ECGOST3410, GOST3410, ISO9796d2, PSS, RSA. ■Key Agreement: Diffie-Hellman and EC-DH. ■Macs: CBCBlockCipher, CFBBlockCipher, GOST28147, HMac, and ISO9797 Alg. 3. ■PBE generators: PKCS#12, and PKCS#5 - schemes 1 and 2. ■OpenPGP (RFC 4880) ■ Crypto graphic Message Syntax (CMS, RFC 3852), including streaming API. ■Online Certificate Status Protocol (OCSP, RFC 2560). ■Time Stamp Protocol (TSP, RFC 3161). ■TLS/SSL Client with support for client side authenticat io n.
windows环境下开发hadoop与本地运行,会报错,需要编译win环境hadoop工具 否则,可能会有两种错误: 1、Did not find winutils.exe: java. io . FileNotFoundException ; 2、java.lang.UnsatisfiedLinkError: org.apache.hadoop. io .native io .Native IO $Windows 将里面的bin目录覆盖到hadoop对应bin目录即可
System. IO . FileNotFoundException :“C ould not find file 'D:\LearnCode\高级篇\Json操作\bin\Debug\net6.0\Skill.txt'.”这个错误通常表示程序无法 指定 路径下的 文件 。可能的原因有多种。其中一种可能是 文件 路径错误,检查一下 文件 路径是否正确。另一种可能是 文件 确实不存在于 指定 路径下,这时需要确认 文件 是否被删除或移动了位置。还有一种可能是 文件 权限问题,程序没有足够的权限来访问该 文件 。确保 文件 的访问权限是正确的。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [System. IO . FileNotFoundException 报错](https://down load .csdn.net/down load /u014699454/7438215)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [System. IO . FileNotFoundException : C ould not load file or assembly ‘System.Data.SQLite. dll ‘ or one ...](https://blog.csdn.net/qq_37630596/article/details/120496833)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
C# DLL异常System.IO.FileNotFoundException:Could not load file orassembly BouncyCastle.Crypto系统找不到指定的文件 C# DLL异常System.IO.FileNotFoundException:Could not load file orassembly BouncyCastle.Crypto系统找不到指定的文件 zzzzyyj: