我的安装失败(缺少 DLL).我该怎么做才能纠正这个问题? [英] My installation failed (missing DLL). What do I do to correct this?

查看:27
本文介绍了我的安装失败(缺少 DLL).我该怎么做才能纠正这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法安装我的项目,因为 setup.exe 给出了一个

I cannot install my project because the setup.exe gives an

错误 1001.无法在 C:\Program Files\MyProgram\SI.ArchiveService.ArchiveService.exe 程序集中获取安装程序类型

ERROR 1001. Unable to get installer types in the C:\Program Files\MyProgram\SI.ArchiveService.ArchiveService.exe assembly

无法加载一种或多种请求的类型.检索 LoaderExceptions 属性以获取更多信息.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

所以我查看了融合日志,发现有 3 个错误(我在底部发布了最相关的错误).下面的一个被翻译回英文,所以措辞可能略有偏差.但据我所知,缺少一个程序集:

So I viewed the fusion logs and there were 3 errors (I have posted the most relevant at the bottom). The one below is translated back to english, so the wording might be slightly off. But from what I can see, there is missing an assembly:

日志:后政治参考:SI.ArchiveService.CommonLogic.Exceptions,版本 = 1.0.0.0,文化 = 中性,PublicKeyToken = 925c8734ae397609

LOG: Post Politics Reference: SI.ArchiveService.CommonLogic.Exceptions, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 925c8734ae397609

这是否意味着它在 GAC 中查找并找不到?我将该项目作为解决方案的一部分,但我不知道为什么它突然失败了.主要输出将添加到安装项目中的文件夹全局程序集缓存文件夹"中.它以前工作过.发生了什么事?知道如何解决这个问题吗?

Does this means it looks in GAC and couldn't find it? I have the project as part of the solution, but I don't know why it suddenly fails. The primary output is added to the folder "Global Assembly Cache Folder" in the install project. It has worked before. What has happened? Any idea of how to fix this?

* 日志中的 Assemblybinderpost (24-03-2011 @ 15:43:42) *

操作失败.配对分数:hr =0x80070002.指定的文件不是找到了.

Operation failed. Pair Score: hr = 0x80070002. The specified file was not found.

Assemblystyring 加载自:C:\视窗\微软.NET\框架\v2.0.50727\mscorwks.dll 运行在可执行 C:\Windows\syswow64\Msiexec.exe--- 后面有详细的错误日志.

Assemblystyring loaded from: C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ mscorwks.dll Running under executable C: \ Windows \ syswow64 \ Msiexec.exe --- There follows a detailed error log.

=== 关于先前绑定的条件信息 ===

=== Condition Information on prior binding ===

日志:用户 = NT AUTHORITY \ SYSTEM

LOG: User = NT AUTHORITY \ SYSTEM

日志:DisplayName = SI.ArchiveService.CommonLogic.Exceptions,版本 = 1.0.0.0,Culture = 中性,PublicKeyToken = 925c8734ae397609
(完全指定)

LOG: DisplayName = SI.ArchiveService.CommonLogic.Exceptions, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 925c8734ae397609
(Fully-Specified)

LOG: Appbase = file:///C:/Windows/syswow64/

LOG: Appbase = file: / / / C: / Windows/syswow64 /

登录:第一个 PrivatePath = NULL

LOGIN: First PrivatePath = NULL

日志:动态基数 = NULL

LOG: Dynamic Base = NULL

日志:缓存基数 = NULL

LOG: Cache Base = NULL

日志:AppName = NULL 调用程序集:SI.ArchiveService.ArchiveService,版本 = 1.0.0.0,文化 = 中性,PublicKeyToken = 925c8734ae397609.

LOG: AppName = NULL Calling assembly: SI.ArchiveService.ArchiveService, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 925c8734ae397609.

===

LOG:此绑定在读取上下文加载时启动.

LOG: This binding initiates in reading context load from.

警告:原始图像未在上下文加载中进行测试.原始图像仅在标准阅读上下文中与 Assembly.Load () 一样进行测试.

WRN: Original image is not tested in the context load from. Original image is tested only in the standard reading context as with Assembly.Load ().

LOG:找不到程序配置文件.LOG:用户主机配置文件:C:\Users\KASPER~1.HAN\AppData\Local\Temp\CFGBE23.tmp

LOG: Could not find a program configuration file. LOG: User host configuration file: C: \ Users \ KASPER ~ 1.HAN \ AppData \ Local \ Temp \ CFGBE23.tmp

LOG: 用户机器配置文件来自 C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

LOG: User machine configuration file from C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ config \ machine.config.

日志:后政治参考:SI.ArchiveService.CommonLogic.Exceptions,版本 = 1.0.0.0,文化 = 中性,PublicKeyToken = 925c8734ae397609

LOG: Post Politics Reference: SI.ArchiveService.CommonLogic.Exceptions, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = 925c8734ae397609

LOG:之前看到过相同的绑定,但因 hr = 0x80070002 而失败.

LOG: The same binding was seen before and failed with hr = 0x80070002.

ERR:下载前发生不可恢复的错误(hr = 0x80070002).

ERR: There was an unrecoverable error under control before downloading (hr = 0x80070002).

推荐答案

如果似乎没有部署程序集,请尝试检查解决方案属性.

If it seems like an assembly is not being deployed try checking the solution properties.

在解决方案资源管理器中右键单击解决方案,转到属性,转到配置属性"下的配置",并确保所有项目都被选中为构建.

Right click the solution in solution explorer, go to properties, go to 'Configuration' under 'Configuration Properties' and make sure all the projects are checked as Build.

同时将配置下拉菜单从 Debug 更改为 Release 并确保它们仍然处于选中状态.

Also change the configuration drop down from Debug to Release and make sure they are all still checked.

这篇关于我的安装失败(缺少 DLL).我该怎么做才能纠正这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆