求助:用C#创建的Windows Service安装时出现密码?(已解决)
2008-03-12 10:58
441 查看
我用C#创建了一个Windows Service程序,也同时创建了一个ProjectInstaller。然后生成服务程序的可执行文件,安装。
当使用installutil.exe工具进行安装时,提示输入用户名和密码。我输入了我的管理员的用户名和密码也不行。
后来即使切换到adminitrator用户下,重启,再安装,也需要输入用户名和密码,结果还是不对。
以下是提示信息,请大家看看,是为什么。谢谢!
Found .NET Framework version 2.0.50727
Installing service "MyServices.exe"
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\tech\TS.Services\MySer
vices.exe assembly's progress.
The file is located at C:\Program Files\tech\TS.Services\MyServices.InstallLog.
Installing assembly 'C:\Program Files\tech\TS.Services\MyServices.exe'.
Affected parameters are:
logtoconsole =
assemblypath = C:\Program Files\tech\TS.Services\MyServices.exe
logfile = C:\Program Files\tech\TS.Services\MyServices.InstallLog
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and secur
ity IDs was done
The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\tech\TS.Services\MySer
vices.exe assembly's progress.
The file is located at C:\Program Files\tech\TS.Services\MyServices.InstallLog.
Rolling back assembly 'C:\Program Files\tech\TS.Services\MyServices.exe'.
Affected parameters are:
logtoconsole =
assemblypath = C:\Program Files\tech\TS.Services\MyServices.exe
logfile = C:\Program Files\tech\TS.Services\MyServices.InstallLog
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
DONE!!!
Press any key to continue . . .
当使用installutil.exe工具进行安装时,提示输入用户名和密码。我输入了我的管理员的用户名和密码也不行。
后来即使切换到adminitrator用户下,重启,再安装,也需要输入用户名和密码,结果还是不对。
以下是提示信息,请大家看看,是为什么。谢谢!
Found .NET Framework version 2.0.50727
Installing service "MyServices.exe"
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the C:\Program Files\tech\TS.Services\MySer
vices.exe assembly's progress.
The file is located at C:\Program Files\tech\TS.Services\MyServices.InstallLog.
Installing assembly 'C:\Program Files\tech\TS.Services\MyServices.exe'.
Affected parameters are:
logtoconsole =
assemblypath = C:\Program Files\tech\TS.Services\MyServices.exe
logfile = C:\Program Files\tech\TS.Services\MyServices.InstallLog
An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: No mapping between account names and secur
ity IDs was done
The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Program Files\tech\TS.Services\MySer
vices.exe assembly's progress.
The file is located at C:\Program Files\tech\TS.Services\MyServices.InstallLog.
Rolling back assembly 'C:\Program Files\tech\TS.Services\MyServices.exe'.
Affected parameters are:
logtoconsole =
assemblypath = C:\Program Files\tech\TS.Services\MyServices.exe
logfile = C:\Program Files\tech\TS.Services\MyServices.InstallLog
The Rollback phase completed successfully.
The transacted install has completed.
The installation failed, and the rollback has been performed.
DONE!!!
Press any key to continue . . .
相关文章推荐
- 解决安装MySQL5.5出现Cannot create windows service for mysql.error:0
- C#使用Windows Service的简单教程(创建、安装、卸载、调试)
- 解决双硬盘安装windows出现“安装程序无法定位现有系统分区,也无法创建新的系统分区”错误
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- C#的简单的Windows Service 创建与安装
- C#Windows Service程序的创建安装与卸载
- C# VS 2010创建、安装、调试 windows服务(windows service)
- Cannot create windows service for mysql.error:0 (解决安装MYSQL5出现问题)
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- C# VS 2010创建、安装、调试 windows服务(windows service)
- C# VS 2010创建、安装、调试 windows服务(windows service)
- 解决MySQL5.1安装时出现Cannot create windows service for mysql.error:0
- 解决安装MySQL出现Cannot create windows service for mysql.error:0
- 出现“无法通过windows installer服务安装此安装程序包。您必须安装带有更新版本Windows Installer服务的Windows Service Pack”提示如何解决?
- 解决安装MySQL5.1出现Cannot create windows service for mysql.error:0
- 解决MySQL5.1安装时出现Cannot create windows service for mysql.error:0
- windows 2003中安装net Framework 2.0 后Reporting Service 出现问题及其解决方法
- 安装SQL Server 2000出现“以前进行的程序安装创建了挂起的文件操作”的解决办法
- Apache安装出现“No installed service name Apache2”及解决
- Apache安装出现“No installed service name Apache2”及解决