资源编译器问题(最初被称为“UAC与Subst一起工作不好”)

时间:2010-08-16 19:20:25

标签: .net visual-studio-2010 compiler-construction resources

我正在尝试使用UAC运行VS2010。 ResourceCompiler抱怨它无法找到位于子驱动器上的文件。

这是一个融合日志。

*** Assembly Binder Log Entry (8/16/2010 @ 1:54:39 PM) ***

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

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable P:\io\bin\common\FireFly.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User =========
LOG: DisplayName = MyAssembly.resources, Version=2.2.2.23024, Culture=en-US, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///P:/io/bin/common/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MyApp.exe
Calling assembly : MyAssembly, Version=2.2.2.23024, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: P:\io\bin\common\MyApp.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

你会推荐什么?

2 个答案:

答案 0 :(得分:0)

WhereWith UAC on,我打赌这个进程在不同的安全上下文中运行,没有访问权限,或者不知道p:驱动器。使用Microsoft TechNet's Sysinternals Procmon.exe监视激活(搜索和加载依赖dll)。

Sxstrace.exe也可以帮助跟踪程序集激活问题。

答案 1 :(得分:0)

我试图改变图片,但它确实有效。一个TIFF资源编译器喜欢,另一个 - 不喜欢。