本文介绍了在项目中加载装配'TallComponents.PDF.Rasterizer'时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,大家好:
正在使用程序集"TallComponents.PDF.Rasterizer"将pdf页面转换为图像
我得到这个错误:
hey All:
am using assembly ''TallComponents.PDF.Rasterizer'' for convert pdf page to image
and i get this error:
<br />
<pre lang="sql">Could not load file or assembly ''TallComponents.PDF.Rasterizer'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)<br />
الوصف: حدث استثناء لم تتم معالجته أثناء تنفيذ طلب ويب الحالي. الرجاء مراجعة تتبع بنية تخزين العناصر للحصول على المزيد من المعلومات حول الخطأ ومكان حدوثه في التعليمات البرمجية.<br />
تفاصيل الاستثناء: System.IO.FileLoadException: Could not load file or assembly ''TallComponents.PDF.Rasterizer'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)<br />
خطأ في المصدر:<br />
تم توليد استثناء لم تتم معالجته أثناء تنفيذ طلب ويب الحالي. يمكن التعرف على معلومات متعلقة بأصل الاستثناء وموقعه باستخدام تتبع بنية تخزين عناصر الاستثناءات أدناه.<br />
تتبع تحميل التجميع: قد تساعد المعلومات التالية في تحديد السبب في عدم إمكانية تحميل التجميع ''TallComponents.PDF.Rasterizer''.<br />
WRN: Assembly binding logging is turned OFF.<br />
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br />
Note: There is some performance penalty associated with assembly bind failure logging.<br />
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].<br />
<br />
تتبع بنية تخزين العناصر:<br />
[FileLoadException: Could not load file or assembly ''TallComponents.PDF.Rasterizer'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)] [FileLoadException: Could not load file or assembly ''TallComponents.PDF.Rasterizer, Version=3.0.49.0, Culture=neutral, PublicKeyToken=76bf2dedaa68ccb5'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46 [ConfigurationErrorsException: Could not load file or assembly ''TallComponents.PDF.Rasterizer, Version=3.0.49.0, Culture=neutral, PublicKeyToken=76bf2dedaa68ccb5'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54 System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +600 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125 System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304 [HttpException (0x80004005): Could not load file or assembly ''TallComponents.PDF.Rasterizer, Version=3.0.49.0, Culture=neutral, PublicKeyToken=76bf2dedaa68ccb5'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729 [HttpException (0x80004005): Could not load file or assembly ''TallComponents.PDF.Rasterizer, Version=3.0.49.0, Culture=neutral, PublicKeyToken=76bf2dedaa68ccb5'' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259</pre><br />
<br />
<br />
我将其添加到配置文件中:
i add it in Config file :
<br />
<pre lang="xml"><assemblies><br />
<br />
<add assembly="TallComponents.PDF.Rasterizer, Version=3.0.49.0, Culture=neutral, PublicKeyToken=76bf2dedaa68ccb5"/><br />
</assemblies></pre><br />
<br />
不昌!有任何答案吗?..
No Chang !! any answer please?..
推荐答案
这篇关于在项目中加载装配'TallComponents.PDF.Rasterizer'时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!