首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用'ngen install ..‘时出错。

使用'ngen install ..‘时出错。
EN

Stack Overflow用户
提问于 2011-08-31 18:02:20
回答 1查看 905关注 0票数 0

我正在尝试使用NGEN为我的应用程序创建一个本机映像。但是它显示了依赖错误,比如

代码语言:javascript
复制
Failed to load dependency interop.office.kmgp of assembly interop.word.kmgp , Version=8.1.0.0, Culture=neutral, PublicKeyToken=3afac4595eedae9b because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x800
70002)

Failed to load dependency interop.vbide.kmgp of assembly interop.word.kmgp , Version=8.1.0.0, Culture=neutral, PublicKeyToken=3afac4595eedae9b because of the following error : The system cannot find the file specified. (Exception from HRESULT: 0x8007
0002)

Failed to load dependency Microsoft.Synchronization of assembly Microsoft.Synchronization.Files, Version=0.94.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The located assembly's manifest definition does notmatch the assembly reference. (Exception from HRESULT: 0x80131040)

Failed to load dependency Microsoft.Synchronization of assembly Microsoft.Synchronization.MetadataStorage, Version=0.94.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

但事实是,这些dlls并没有在应用程序中引用。请建议,我如何摆脱这一点。

编辑,

忘了我的应用程序吧,这里有什么问题,我只注册了一个dll。

代码语言:javascript
复制
    ngen install C:\VSSTEST\Binaries\Microsoft.Synchronization.MetadataStorage.dll /ExeConfig:"C:\Program Files\ABC\Bin\ABC.exe"
   Microsoft (R) CLR Native Image Generator - Version 4.0.30319.1
Copyright (c) Microsoft Corporation.  All rights reserved.
Installing assembly C:\VSSTEST\Binaries\Microsoft.Synchronization.MetadataStorage.dll
Failed to load dependency Microsoft.Synchronization of assembly Microsoft.Synchronization.MetadataStorage, Version=0.94.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 because of the following error : The located assembly's manifest definition
 does not match the assembly reference. (Exception from HRESULT: 0x80131040)
All compilation targets are up to date.
EN

回答 1

Stack Overflow用户

发布于 2011-08-31 18:22:51

它们可能没有被直接引用,但其中一个被引用的程序集正在引用它们。只需确保您拥有这些程序集,因为如果没有它们,您的应用程序可能无法正常运行。

更新:

你的第二个错误意味着Microsoft.Synchronization.Metadata可能有一个错误的版本。二进制文件夹中的实际版本是0.94.0.0,但应用程序引用了不同的版本。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7255400

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档