473,395 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Running service under the account: User

Hi everybody
Is creating of the service, which must be ran under the "user account"
something really tricky? I mean if in ServiceProcessInstaller
properties I'm using account: Local System everything works fine. But
if I select account: User, during the service installation process the
dialog pops up where I have to key in user id and password, which is
fine, but after that I'm getting the message: "An exception occurred
during the Install phase.System.ComponentModel.Win32Exception: The
account
name is invalid or does not exist, or the password is
invalid for the account name specified" ???
The user id and password are OK, I can log in to my machine using
these parameters, I added this user(account), which has to run the
service to the Administrators group... Still the same error.
I've found already several similar posts one in 2003, one in 2004 in
even one from current October. None had answers, which could solve
the problem.
But obviously some people can do it.
So what I'm doing fundamentally wrong and what I'm suppose to do to be
able to install and run the service under the user account:
1) some special things in C# project?
2) some special things setting of the Windows user(account)?

Thanks,
Alex

Oct 22 '07 #1
1 2944

I've found the answer myself, it was simple - when I was entering user
id during the installation process, I had to type in: MACHINE_NAME
\UserID, but I was entering just UserID.

Hope it helps someone..

Alex

On Oct 22, 11:06 am, Alex <alsim...@hotmail.comwrote:
Hi everybody
Is creating of the service, which must be ran under the "user account"
something really tricky? I mean if in ServiceProcessInstaller
properties I'm using account: Local System everything works fine. But
if I select account: User, during the service installation process the
dialog pops up where I have to key in user id and password, which is
fine, but after that I'm getting the message: "An exception occurred
during the Install phase.System.ComponentModel.Win32Exception: The
account
name is invalid or does not exist, or the password is
invalid for the account name specified" ???
The user id and password are OK, I can log in to my machine using
these parameters, I added this user(account), which has to run the
service to the Administrators group... Still the same error.
I've found already several similar posts one in 2003, one in 2004 in
even one from current October. None had answers, which could solve
the problem.
But obviously some people can do it.
So what I'm doing fundamentally wrong and what I'm suppose to do to be
able to install and run the service under the user account:
1) some special things in C# project?
2) some special things setting of the Windows user(account)?

Thanks,
Alex

Oct 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sims | last post by:
Hi, I have a service that need to access the current user registry from time to time. But a service only works as a SYSTEM and not as the current user. How can i change that? Or at the very...
4
by: Chris Allison | last post by:
I am getting the following error when running a command in Query Analyzer. Msg 50001, Level 1, State 50001 xpsql.cpp: Error 5 from CreateProcess on line 675 Here is the command that I am...
7
by: John | last post by:
Hi How can I make my vb.net app to run as service? This app reads a dataset from a web service method and saves it in a local access table. Thanks Regards
3
by: Miriam | last post by:
Hello, I created a Windows Service in VB.NET, which is to purge files periodically in the local system and also in the shared network drive. Here is my problem: 1. If I set the “Account”...
2
by: Mike | last post by:
Can a vb program running as a serice not use network paths to do file/io? I can't seem to get my program to work with network paths and files. When I use local disk it works fine. When I run it...
4
by: Max2006 | last post by:
Hi, I am developing a web application on windows XP. A page within my application needs to access to SSRS running on the same machine. Once the web application tries to consume the SSRS web...
5
by: =?Utf-8?B?cnZhbmdlbGRyb3A=?= | last post by:
Hello, I have a problem with our OnlineBackupService.exe. This is a Windows Service which is built in .Net 1.1 and basically grabs files from the file system and will try to upload them using...
3
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I have a problem running my program as a service. When it runs as a desktop program, it has access to oracle database. When it runs as a service it returns an error: Oracle client and...
1
by: =?Utf-8?B?U3ludGF4IDM3NzA3?= | last post by:
I have found lots of people talking about this issue, but no one seems to have a solution. I could really use some help here. Has anyone seen this or have any ideas? I have been running the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.