installutil.exe安装Windows服务 [英] installutil.exe installing windows service

查看:352
本文介绍了installutil.exe安装Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要安装Windows服务并继续收到以下消息,任何人都可以帮忙吗? TIA


C:\Program Files \我的应用程序> installUtil.exe MyApp.exe
Microsoft(R).NET Framework安装实用程序版本2.0.50727.42
版权所有(c)微软公司。 保留所有权利。

I'm tring to install a windows service and keep getting the following message, can anyone help with this? TIA


C:\Program Files\My Application>installUtil.exe MyApp.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation.  All rights reserved.


运行事务安装。


Running a transacted installation.

开始安装的安装阶段。
查看内容C:\Program Files \My Application \ MyApp.exe程序集进度的日志文件。
该文件位于C:\Program Files \ My Application \ MyApp.InstallLog。
安装程序集'C:\Program Files \我的应用程序\ MyApp.exe'。
受影响的参数是:

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\My Application\MyApp.exe assembly's progress.
The file is located at C:\Program Files\My Application\MyApp.InstallLog.
Installing assembly 'C:\Program Files\My Application\MyApp.exe'.
Affected parameters are:

   logtoconsole =
   assemblyMyApph = C:\Program Files \我的应用程序\ MyApp.exe
   logfile = C:\Program Files \我的应用程序\ MyApp.InstallLog

   logtoconsole =
   assemblyMyApph = C:\Program Files\My Application\MyApp.exe
   logfile = C:\Program Files\My Application\MyApp.InstallLog

尝试在C:\Program Files \ Myy Application中找到安装程序时发生异常\\ MyApp.exe程序集。
System.Reflection.ReflectionTypeLoadException:无法加载一个或多个请求的类型。检索LoaderExc
eptions属性以获取更多信息。
中止安装C:\Program Files \ Myy Application\MyApp.exe。

An exception occurred while trying to find the installers in the C:\Program Files\My Application\MyApp.exe assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExc
eptions property for more information.
Aborting installation for C:\Program Files\My Application\MyApp.exe.

期间发生异常安装阶段。
System.InvalidOperationException:无法在C:\Program Files \ Myy Application \ MyApp.exe程序集中获取安装程序类型。
内部异常System.Reflection.ReflectionTypeLoadException被抛出以下内容错误消息:

An exception occurred during the Install phase.
System.InvalidOperationException: Unable to get installer types in the C:\Program Files\My Application\MyApp.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message:

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

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

安装的回滚阶段正在开始。
请参阅C:\Program Files \ Myy的日志文件内容Application \ MyApp.exe程序集的进度。
该文件位于C:\Program Files \ My Application \ MyApp.InstallLog。
回滚程序集'C:\Program Files \ Myy Application \ MyApp.exe'。
受影响的参数是:
   logtoconsole =
   assemblyMyApph = C:\Program Files \我的应用程序\ MyApp.exe
   logfile = C:\Program Files \ Myy Application\MyApp.InstallLog
尝试在C:\Program Files \ Myy Application \ MyApp.exe程序集中查找安装程序时发生异常。
System.Reflection.ReflectionTypeLoadException:无法加载一个或多个请求的类型。检索LoaderExc
eptions属性以获取更多信息。
为C:\Program Files \ Myy Application\MyApp.exe中止安装。
在System.Configuration的回滚阶段发生异常。 Install.AssemblyInstaller安装程序。
System.InvalidOperationException:无法在C:\Program Files \ Myy Application \ MyApp.exe程序集中获取安装程序类型。
内部异常System.Reflection.ReflectionTypeLoadException被抛出以下错误消息:无法
加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。
在安装的回滚阶段发生异常。此异常将被忽略,并且回滚将继续。但是,在回滚完成后,计算机可能无法完全恢复到其初始状态。

The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\My Application\MyApp.exe assembly's progress.
The file is located at C:\Program Files\My Application\MyApp.InstallLog.
Rolling back assembly 'C:\Program Files\My Application\MyApp.exe'.
Affected parameters are:
   logtoconsole =
   assemblyMyApph = C:\Program Files\My Application\MyApp.exe
   logfile = C:\Program Files\My Application\MyApp.InstallLog
An exception occurred while trying to find the installers in the C:\Program Files\My Application\MyApp.exe assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExc
eptions property for more information.
Aborting installation for C:\Program Files\My Application\MyApp.exe.
An exception occurred during the Rollback phase of the System.Configuration.Install.AssemblyInstaller installer.
System.InvalidOperationException: Unable to get installer types in the C:\Program Files\My Application\MyApp.exe assembly.
The inner exception System.Reflection.ReflectionTypeLoadException was thrown with the following error message: Unable to
 load one or more of the requested types. Retrieve the LoaderExceptions property for more information..
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback wil
l continue. However, the machine might not fully revert to its initial state after the rollback is complete.

回滚阶段已成功完成。

事务处理安装具有已完成。
安装失败,并且已执行回滚。

The transacted install has completed.
The installation failed, and the rollback has been performed.

C:\Program Files \我应用程序>暂停:
按任意键继续。 。 。

C:\Program Files\My Application>pause:
Press any key to continue . . .

推荐答案

您是否在与服务相同的文件夹中(或在GAC中)拥有该服务的所有依赖项)以便他们可以被发现。听起来你可能会遗漏一些东西。


这篇关于installutil.exe安装Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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