无法加载文件或程序集' \ bin \ ABCpdf8-64.dll'或其中一个依赖项。该模块应该包含一个程序集清单

时间:2015-06-23 10:19:19

标签: asp.net-mvc-4 abcpdf

尝试运行应用程序时收到以下错误消息。

无法加载文件或程序集&bin; \ ABCpdf8-64.dll'或其中一个依赖项。该模块应该包含一个程序集清单。

请从FusionLog Viewer

中找到以下完整详细信息
<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry  (23/06/2015 @ 10:21:13) ***

The operation failed.
Bind result: hr = 0x80131018. No description available.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\bin\ABCpdf8-64.dll
LOG: Appbase = file:///C:/Code/xxxxx/Branches/xxxxx/xxxxx/xxxxx/
LOG: Initial PrivatePath = C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e0fbcc81
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e0fbcc81
LOG: AppName = 6bf02849
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Code/xxxxx/Branches/xxxxx/xxxxx/xxxxx/bin/ABCpdf8-64.dll.
LOG: Assembly download was successful. Attempting setup of file: C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\bin\ABCpdf8-64.dll
LOG: Entering download cache setup phase.
ERR: Error extracting manifest import from file (hr = 0x80131018).
ERR: Setup failed with hr = 0x80131018.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

</pre></html><meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry  (23/06/2015 @ 10:21:13) ***

The operation failed.
Bind result: hr = 0x80131018. No description available.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\bin\ABCpdf8-64.dll
LOG: Appbase = file:///C:/Code/xxxxx/Branches/xxxxx/xxxxx/xxxxx/
LOG: Initial PrivatePath = C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e0fbcc81
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e0fbcc81
LOG: AppName = 6bf02849
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Code/xxxxx/Branches/xxxxx/xxxxx/xxxxx/bin/ABCpdf8-64.dll.
LOG: Assembly download was successful. Attempting setup of file: C:\Code\xxxxx\Branches\xxxxx\xxxxx\xxxxx\bin\ABCpdf8-64.dll
LOG: Entering download cache setup phase.
ERR: Error extracting manifest import from file (hr = 0x80131018).
ERR: Setup failed with hr = 0x80131018.
ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing terminated.

</pre></html>

1 个答案:

答案 0 :(得分:0)

ABCpdf8-64.dll是 NOT .NET程序集。它是一个本机DLL,将由ABCpdf.DLL调用, .NET程序集。

此错误消息告诉我您尝试将ABCpdf8-64.dll作为.NET程序集引用,可能来自您的web.config文件。您应该改为引用ABCpdf.dll。