我的bin文件夹中也有一个文件 - MyService..InstallLog中有这个 : ********* ***************************************** ********* *********** C:\ DotNetProjects \ MyService \bin> installUtil " c:\ DotNetProjects \ MyService \ bin \ MyS ervice.exe" Microsoft(R).NET Framework安装实用程序版本1.1.4322.573 版权所有(C)Microsoft Corporation 1998-2002。保留所有权利。 运行事务安装。 开始安装的安装阶段。查看日志文件的内容 c:\dotnetprojects \ myservice \ bin \ myservi ce.exe程序集的进度。该文件位于c:\ dotnetprojects \ myservice \ bin \ myservice.InstallL og。安装程序集''c:\dotnetprojects\myservice\bin\myservice.exe''。受影响的参数是: assemblypath = c:\dotnetprojects \ myservice \ bin \ myservice.exe logfile = c:\dotnetprojects\myservice\bin\myservice.InstallL og 安装服务Service1 ...... 在日志应用程序中创建EventLog源Service1 ... 安装阶段发生异常。 System.ComponentModel.Win32Exception:帐户名无效或不是ex ist,或者密码无效对于指定的帐户名称 安装的回滚阶段正在开始。请参阅 c:\dotnetprojects \ myservice \ bin的日志文件内容\ myservi ce.exe程序集的进度。该文件位于c:\dotnetprojects \ myservice \ bin \ myservice.InstallL og。回滚程序集''c:\dotnetprojects \ myservice \ bin \ myservice.exe''。受影响的参数是: assemblypath = c:\ dotnetprojects \ myservice \ bin \\ \\ myservice.exe logfile = c:\dotnetprojects \ myservice \ bin \ myservice.InstallL og 将事件日志恢复到源Service1的先前状态。 回滚阶段成功完成。 已完成事务处理。安装失败,并且已执行回滚。 C:\DotNetProjects \ MyService \bin> ****************************************** ******** ********* 所以我认为它发现没问题。 I have a small Windows Service program that just has a timer on it and itbuilt fine.I try to install it using InstallUtil and I get the following message:System.ComponentModel.Win32Exception: The account name is invalid or doesnot exist, or the password is invalid for the account name specifiedI am in the same folder my program is in (MyService.exe). I assume it hasto do with Logon Credentials.What do I do to get this installed?Here is the whole install problem with Path:************************************************** ******************************************C:\DotNetProjects\MyService\bin>installUtil"c:\DotNetProjects\MyService\bin\MyService.exe"Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.Running a transacted installation.Beginning the Install phase of the installation.See the contents of the log file for thec:\dotnetprojects\myservice\bin\myservice.exe assembly''s progress.The file is located at c:\dotnetprojects\myservice\bin\myservice.InstallL og.Installing assembly ''c:\dotnetprojects\myservice\bin\myservice.exe''.Affected parameters are:assemblypath = c:\dotnetprojects\myservice\bin\myservice.exelogfile = c:\dotnetprojects\myservice\bin\myservice.InstallL ogInstalling service Service1...Creating EventLog source Service1 in log Application...An exception occurred during the Install phase.System.ComponentModel.Win32Exception: The account name is invalid or doesnot exist, or the password is invalid for the account name specifiedThe Rollback phase of the installation is beginning.See the contents of the log file for thec:\dotnetprojects\myservice\bin\myservice.exe assembly''s progress.The file is located at c:\dotnetprojects\myservice\bin\myservice.InstallL og.Rolling back assembly ''c:\dotnetprojects\myservice\bin\myservice.exe''.Affected parameters are:assemblypath = c:\dotnetprojects\myservice\bin\myservice.exelogfile = c:\dotnetprojects\myservice\bin\myservice.InstallL ogRestoring event log to previous state for source Service1.The Rollback phase completed successfully.The transacted install has completed.The installation failed, and the rollback has been performed.C:\DotNetProjects\MyService\bin>************************************************** ***************************************Thanks,Tom 解决方案************************************************** ************************** c:\dotnetprojects\myservice\bin\myservice.InstallL og. c:\dotnetprojects\myservice\bin\myservice.InstallL og.************************************************** ************************** I also have a file in my bin folder - MyService..InstallLog that has thisin it: ************************************************** ******************** C:\DotNetProjects\MyService\bin>installUtil "c:\DotNetProjects\MyService\bin\MyS ervice.exe" Microsoft (R) .NET Framework Installation utility Version 1.1.4322.573 Copyright (C) Microsoft Corporation 1998-2002. All rights reserved. Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the c:\dotnetprojects\myservice\bin\myservi ce.exe assembly''s progress. The file is located atc:\dotnetprojects\myservice\bin\myservice.InstallL og. Installing assembly ''c:\dotnetprojects\myservice\bin\myservice.exe''. Affected parameters are: assemblypath = c:\dotnetprojects\myservice\bin\myservice.exe logfile = c:\dotnetprojects\myservice\bin\myservice.InstallL og Installing service Service1... Creating EventLog source Service1 in log Application... An exception occurred during the Install phase. System.ComponentModel.Win32Exception: The account name is invalid or does not ex ist, or the password is invalid for the account name specified The Rollback phase of the installation is beginning. See the contents of the log file for the c:\dotnetprojects\myservice\bin\myservi ce.exe assembly''s progress. The file is located atc:\dotnetprojects\myservice\bin\myservice.InstallL og. Rolling back assembly ''c:\dotnetprojects\myservice\bin\myservice.exe''. Affected parameters are: assemblypath = c:\dotnetprojects\myservice\bin\myservice.exe logfile = c:\dotnetprojects\myservice\bin\myservice.InstallL og Restoring event log to previous state for source Service1. The Rollback phase completed successfully. The transacted install has completed. The installation failed, and the rollback has been performed. C:\DotNetProjects\MyService\bin> ************************************************** ********* So I assume it is finding it fine. 这篇关于Windows服务未安装。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-01 11:37