代码之家  ›  专栏  ›  技术社区  ›  GregC Benjamin Baumann

资源编译器问题(最初被认为是“UAC和SUBST不能很好地协同工作”)。

  •  2
  • GregC Benjamin Baumann  · 技术社区  · 15 年前

    我正在尝试在上运行带有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 回复  |  直到 15 年前
        1
  •  0
  •   Nathan    15 年前

    在打开UAC的情况下,我敢打赌进程运行在不同的安全上下文中,没有访问权限,或者不知道p:drive。使用 Microsoft TechNet's Sysinternals Procmon.exe 监视激活(搜索和加载相关DLL)。

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

        2
  •  0
  •   GregC Benjamin Baumann    15 年前

    我试着换照片,但效果很好。一个TIFF资源编译器喜欢,另一个则不喜欢。

    推荐文章