NetworkCommsDotNet dll无法加载

时间:2013-12-03 09:05:16

标签: c# .net visual-studio-2012 clr fusion

我正在探索NetworkCommsDotNet库以用于项目。我正在构建项目,但是当它到达TCPConnection.StartListening(NetworkComms dll函数)时,我在IntelliTrace中看到抛出的异常说“无法加载程序集等等等等”。

我附上了融合日志,有什么想法吗?我很难过......:/

编辑:我应该补充说dll实际上存在,并且其权限设置为Everyone - 完全控制。它的文件属性也是“未阻止的”。所有者也是人人。

EDIT2:http://imgur.com/vhPPo80

*** Assembly Binder Log Entry  (3/12/2013 @ 10:58:45 ΟΞΌ) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Users\Administrator\Documents\Visual Studio 2012\Projects\CCF_PwrMon_Test_Server\CCF_PwrMon_Test_Server\bin\Release\CCF_PwrMon_Test_Server.vshost.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Users\Administrator\Documents\Visual Studio 2012\Projects\CCF_PwrMon_Test_Server\CCF_PwrMon_Test_Server\bin\Release\NetworkCommsDotNetComplete, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Appbase = file:///C:/Users/Administrator/Documents/Visual Studio 2012/Projects/CCF_PwrMon_Test_Server/CCF_PwrMon_Test_Server/bin/Release/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = CCF_PwrMon_Test_Server.exe
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:\Users\Administrator\Documents\Visual Studio 2012\Projects\CCF_PwrMon_Test_Server\CCF_PwrMon_Test_Server\bin\Release\CCF_PwrMon_Test_Server.exe.config
LOG: Using host configuration file: 
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:/Users/Administrator/Documents/Visual Studio 2012/Projects/CCF_PwrMon_Test_Server/CCF_PwrMon_Test_Server/bin/Release/NetworkCommsDotNetComplete, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
LOG: All probing URLs attempted and failed.

</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  (3/12/2013 @ 10:58:45 ΟΞΌ) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  C:\Users\Administrator\Documents\Visual Studio 2012\Projects\CCF_PwrMon_Test_Server\CCF_PwrMon_Test_Server\bin\Release\CCF_PwrMon_Test_Server.vshost.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\Users\Administrator\Documents\Visual Studio 2012\Projects\CCF_PwrMon_Test_Server\CCF_PwrMon_Test_Server\bin\Release\NetworkCommsDotNetComplete, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Appbase = file:///C:/Users/Administrator/Documents/Visual Studio 2012/Projects/CCF_PwrMon_Test_Server/CCF_PwrMon_Test_Server/bin/Release/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = CCF_PwrMon_Test_Server.exe
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:\Users\Administrator\Documents\Visual Studio 2012\Projects\CCF_PwrMon_Test_Server\CCF_PwrMon_Test_Server\bin\Release\CCF_PwrMon_Test_Server.exe.config
LOG: Using host configuration file: 
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:/Users/Administrator/Documents/Visual Studio 2012/Projects/CCF_PwrMon_Test_Server/CCF_PwrMon_Test_Server/bin/Release/NetworkCommsDotNetComplete, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
LOG: All probing URLs attempted and failed.

1 个答案:

答案 0 :(得分:0)

使用NetworkCommsDotNet的更新版本解决了这个问题。