0

我在调试模式下运行我的项目并且它工作正常,但是当我尝试编译它时显示这个错误:这个错误是什么意思?

*** Assembly Binder Log Entry  (3/27/2013 @ 2:22:26 PM) ***

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

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  C:\Documents and Settings\nsbadmin\Desktop\antiSpam.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NIDECSUBIC\nsbadmin
LOG: DisplayName = antiSpam.resources, Version=1.0.0.0, Culture=en, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Documents and Settings/nsbadmin/Desktop/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : antiSpam, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from      c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Documents and Settings/nsbadmin/Desktop/en/antiSpam.resources.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/nsbadmin/Desktop/en/antiSpam.resources/antiSpam.resources.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/nsbadmin/Desktop/en/antiSpam.resources.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/nsbadmin/Desktop/en/antiSpam.resources/antiSpam.resources.EXE.
LOG: All probing URLs attempted and failed.
4

1 回答 1

0

尝试查找文件资源时似乎失败了。在 VS 中,将其属性更改为嵌入到您的 exe 文件中。

于 2013-03-27T06:51:56.080 回答