资源编译器问题(最初提出为“UAC 与 Subst 不能很好地协同工作”)

问题描述 投票:0回答:2

我正在尝试在 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).

你会推荐什么?

.net visual-studio-2010 resources
2个回答
0
投票

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

Sxstrace.exe 也有助于追踪程序集激活问题。


0
投票

我尝试更改图片并且成功了。一种 TIFF 资源编译器喜欢,另一种则不喜欢。

© www.soinside.com 2019 - 2024. All rights reserved.