Windows服务未安装。 [英] Windows Service not installing.

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

问题描述

我有一个小型的Windows服务程序,它上面只有一个计时器,它很好。
建好了。


我尝试使用InstallUtil安装它我收到以下消息:


System.ComponentModel.Win32Exception:帐户名无效或

不存在,或者密码对帐户无效指定的名称


我在我的程序所在的文件夹(MyService.exe)中。我认为它与Logon Credentials一起使用




如何安装这个?


以下是Path的整个安装问题:


**************************** ********************** ************************** />
****************

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:帐户名无效或确定

不是
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

将事件日志恢复到之前的状态源服务1。


回滚阶段成功完成。


已完成交易安装。

安装失败ed,并且已经执行了回滚。


C:\ DotNetProjects \ MyService \ bin>

********* ***************************************** ********* *****************

*************


谢谢,


Tom

解决方案



" tshad" < tf*@dslextreme.com>在消息中写道

新闻:O2 ************** @ TK2MSFTNGP10.phx.gbl ...

我有一个小Windows服务程序上只有一个计时器,它构建得很好。

我尝试使用InstallUtil安装它,我得到以下消息:

系统。 ComponentModel.Win32Exception:帐户名无效或
不存在,或者密码对于指定的帐户名无效

我在我的程序所在的文件夹中(MyService.exe) )。我认为它与Logon Credentials有关。

我该怎么做才能安装它?

以下是Path的整个安装问题:


**************************************** ********** ************************** ************** **
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>

************************************** ************ ************************** ************ *


我的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:帐户名无效或确定

不是
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

将事件日志恢复到之前的状态源服务1。


回滚阶段成功完成。


已完成交易安装。

安装失败ed,并且已经执行了回滚。


C:\ DotNetProjects \ MyService \ bin>

********* ***************************************** *********


所以我认为它发现没问题。

谢谢,

Tom



我终于开始工作了。


我从LocalService更改了帐户(这是我的指示所说的

使用)到LocalSystem。现在它安装了。


为什么不用其他帐户安装(LocalService)?


谢谢,


Tom


" tshad" < tf*@dslextreme.com>在消息中写道

news:un ************* @ TK2MSFTNGP15.phx.gbl ...


" tshad" < tf*@dslextreme.com>在消息中写道
新闻:O2 ************** @ TK2MSFTNGP10.phx.gbl ...

我有一个小的Windows服务程序,只是它有一个计时器和
它构建得很好。

我尝试使用InstallUtil安装它,我得到以下消息:

System.ComponentModel.Win32Exception:帐户名无效或
不存在,或者密码对于指定的帐户名无效

我在我的程序所在的文件夹(MyService.exe)中。我认为
与Logon Credentials有关。

我该怎么做才能安装它?

这是Path的整个安装问题:



************************************ ************** **************************

****************
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:帐户名称为无效或
不是e x
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>



**************** ********************************** **************** **********

*************


我的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>
****************************************** ******** *********

所以我认为它发现没问题。

谢谢,

Tom




你可能会得到一个更好/更快的响应,如果你在windowsforms或.net框架新闻组中发布这个



或at: http://forums.microsoft.com/msdn/在同一个ng'中。


Juan T. Llibre,ASP.NET MVP

ASP.NET FAQ: http://asp.net.do/faq/

Foros de ASP .NET en Espa?ol: http://asp.net.do/foros/

====================================== />
" tshad" < tf*@dslextreme.com>在消息中写道

新闻:O2 ************** @ TK2MSFTNGP10.phx.gbl ...

我有一个小Windows服务程序上只有一个计时器,它构建得很好。

我尝试使用InstallUtil安装它,我得到以下消息:

系统。 ComponentModel.Win32Exception:帐户名无效或
不存在,或者密码对于指定的帐户名无效

我在我的程序所在的文件夹中(MyService.exe) )。我认为它与Logon Credentials有关。

我该怎么做才能安装它?

以下是Path的整个安装问题:

******************************************** ****** ************************** *
************** **
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>
************************** ************************ **************************
*************

谢谢,

Tom



I have a small Windows Service program that just has a timer on it and it
built fine.

I try to install it using InstallUtil and I get the following message:

System.ComponentModel.Win32Exception: The account name is invalid or does
not exist, or the password is invalid for the account name specified

I am in the same folder my program is in (MyService.exe). I assume it has
to 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\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 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.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 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.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>
************************************************** **************************
*************

Thanks,

Tom

解决方案


"tshad" <tf*@dslextreme.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...

I have a small Windows Service program that just has a timer on it and it
built fine.

I try to install it using InstallUtil and I get the following message:

System.ComponentModel.Win32Exception: The account name is invalid or does
not exist, or the password is invalid for the account name specified

I am in the same folder my program is in (MyService.exe). I assume it has
to 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\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 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.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 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.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>
************************************************** ************************** *************

I also have a file in my bin folder - MyService..InstallLog that has this in
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 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.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 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.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.
Thanks,

Tom



I finally got it to work.

I changed the Account from LocalService (which was what my instructions said
to use) to LocalSystem. Now it installed.

Why wouldn''t it install with the other account (LocalService)?

Thanks,

Tom

"tshad" <tf*@dslextreme.com> wrote in message
news:un*************@TK2MSFTNGP15.phx.gbl...


"tshad" <tf*@dslextreme.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...

I have a small Windows Service program that just has a timer on it and it built fine.

I try to install it using InstallUtil and I get the following message:

System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the account name specified

I am in the same folder my program is in (MyService.exe). I assume it has to 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\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 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.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 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.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>


************************************************** **************************

*************



I also have a file in my bin folder - MyService..InstallLog that has this


in 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 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.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 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.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.

Thanks,

Tom




You''ll probably get a better/faster response if you post this
in the windowsforms or .net framework newsgroups,
or at : http://forums.microsoft.com/msdn/ in the same ng''s.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espa?ol : http://asp.net.do/foros/
======================================
"tshad" <tf*@dslextreme.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...

I have a small Windows Service program that just has a timer on it and it
built fine.

I try to install it using InstallUtil and I get the following message:

System.ComponentModel.Win32Exception: The account name is invalid or does
not exist, or the password is invalid for the account name specified

I am in the same folder my program is in (MyService.exe). I assume it has
to 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\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 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.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 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.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>
************************************************** **************************
*************

Thanks,

Tom



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

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