无法加载文件或程序集'interop.scripting,version = 1.0.0.0,

时间:2013-03-27 06:38:22

标签: vb.net vba

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

*** 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.

1 个答案:

答案 0 :(得分:0)

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