【发布时间】:2015-06-26 13:48:34
【问题描述】:
当我尝试运行应用程序时收到以下错误消息。
无法加载文件或程序集“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>
【问题讨论】:
-
确保您的 bin 文件夹中有
'\bin\ABCpdf8-64.dll'。 -
我已经在 bin 中有 abcpdf8-64.dll。
-
好的,然后检查
web.config和packages.config中的程序集信息。看到这个-stackoverflow.com/a/10078384/1982631
标签: asp.net-mvc-4 abcpdf