错误记录:程序集绑定日志记录被关闭

System.IO.FileNotFoundException: 未能加载文件或程序集“bcprov-jdk14-132, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”或它的某一个依赖项。系统找不到指定的文件。
文件名:“bcprov-jdk14-132, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”
在 org.pdfbox.pdmodel.encryption.SecurityHandlersManager.getInstance()
在 org.pdfbox.pdmodel.PDDocument.openProtection(DecryptionMaterial pm)
在 org.pdfbox.pdmodel.PDDocument.decrypt(String password)
在 org.pdfbox.util.PDFTextStripper.writeText(PDDocument doc, Writer outputStream)
在 org.pdfbox.util.PDFTextStripper.getText(PDDocument doc)
在 FileSearchDemo.IndexManager.PdfText(String pdfFileName) 位置 D:\测试\ZJW.FileSearchDemo\FileSearchDemo\Common\IndexManager.cs:行号 326
在 FileSearchDemo.IndexManager.AddIndexTestPan() 位置 D:\测试\ZJW.FileSearchDemo\FileSearchDemo\Common\IndexManager.cs:行号 492
在 FileSearchDemo.IndexManager.threadStart() 位置 D:\测试\ZJW.FileSearchDemo\FileSearchDemo\Common\IndexManager.cs:行号 353

警告: 程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。
注意: 会有一些与程序集绑定失败日志记录关联的性能损失。
要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]


该错误 可能是PDFBox-0.7.3.dll没有注册到vs GAC中

===========================================解决方法=====================================

将dll注册到gac

http://www.cnblogs.com/xx_cs/archive/2011/07/12/2104019.html

原文地址:https://www.cnblogs.com/zjw520/p/3014566.html