I've written up a service in a C# using VS.NET to create the framework for
me. However, I can't seem to get the service installed properly. When I
run the InstallUtil on the service exe, it errors out, reporting the
following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any
information about what could be causing this, but haven't come up with much.
Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg 7 2256
Ryan Gregg wrote: I've written up a service in a C# using VS.NET to create the framework for me. However, I can't seem to get the service installed properly. When I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any information about what could be causing this, but haven't come up with much.
Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
I believe your account would need to have access permissions
--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com
Did you add a project installer 'class' to the project itself? If you
double-click on the main service source file then the [Design] page for the
service will be defined, and a right-click on this page will reveal a menu
that will contain an "Add Installer" entry; select this and a new source
file will be added to the project. Edit that file as required and rebuild
it.
-Ken
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... I've written up a service in a C# using VS.NET to create the framework for me. However, I can't seem to get the service installed properly. When I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any information about what could be causing this, but haven't come up with
much. Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
Ken,
I already had a project installer, but I noticed when I was looking at it
again that I was using the "LocalService" account setting, instead of the
"LocalSystem" account. Since I don't beleive Windows 2000 has a
"LocalService" account setting, this is probably the cause of the problem.
After I swithed it over to LocalSystem, it seems to install and work
properly.
Thanks for your help.
Ryan Gregg
"Ken Allen" <ke******@sympatico.ca> wrote in message
news:uG**************@TK2MSFTNGP12.phx.gbl... Did you add a project installer 'class' to the project itself? If you double-click on the main service source file then the [Design] page for
the service will be defined, and a right-click on this page will reveal a menu that will contain an "Add Installer" entry; select this and a new source file will be added to the project. Edit that file as required and rebuild it.
-Ken
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... I've written up a service in a C# using VS.NET to create the framework
for me. However, I can't seem to get the service installed properly. When
I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any information about what could be causing this, but haven't come up with much. Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
Well, I resolved this issue, but now I have another. I changed the service
over to run on the LocalSystem account, and that lets me install it
properly. However, when I try to actually start the service, I get the
following error:
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... I've written up a service in a C# using VS.NET to create the framework for me. However, I can't seem to get the service installed properly. When I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any information about what could be causing this, but haven't come up with
much. Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
Arg. Let me try that again. I can install the service sucessfully now that
I'm using the LocalSystem account instead of LocalService.
However, when I try to start the service now, I get this error:
---------------------------
Microsoft Management Console
---------------------------
Could not start the TACS Runtime Service service on Local Computer.
The service did not return an error. This could be an internal Windows
error or an internal service error.
If the problem persists, contact your system administrator.
I've tried moving the service over to running as my user account to see if
there was a permissions issue involved there, and it still gives me the same
error. Is there any way to debug what is causing the service to fail to
start?
Thanks.
Ryan Gregg
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... I've written up a service in a C# using VS.NET to create the framework for me. However, I can't seem to get the service installed properly. When I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any information about what could be causing this, but haven't come up with
much. Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
Ryan,
Is your service starting the application in an independent thread? As I'm
sure you know from the docs, a service has only 30 seconds to return from
the intial method call to be considered 'started'. Usually, you can just
start the service in an independent thread so it will return immediately.
If this is not the problem, post your service OnStart, Pause, etc... and I'm
sure people will help you.
Alex
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message
news:ek**************@TK2MSFTNGP12.phx.gbl... Arg. Let me try that again. I can install the service sucessfully now
that I'm using the LocalSystem account instead of LocalService.
However, when I try to start the service now, I get this error:
--------------------------- Microsoft Management Console --------------------------- Could not start the TACS Runtime Service service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator.
I've tried moving the service over to running as my user account to see if there was a permissions issue involved there, and it still gives me the
same error. Is there any way to debug what is causing the service to fail to start?
Thanks. Ryan Gregg
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... I've written up a service in a C# using VS.NET to create the framework
for me. However, I can't seem to get the service installed properly. When
I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for any information about what could be causing this, but haven't come up with much. Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
Alex,
Thanks for the response. Turns out there was a problem that my service was
missing it's .config file, and wasn't handleing the missing parameters in a
kind and gentle fashion. Fixing (read: adding) the error handling code
around reading from app.config as well as actually giving it a config file
solved my problems.
Thanks again.
Ryan Gregg
"Trebek" <al********@intheformofaquestion.com> wrote in message
news:c1*****************@fe37.usenetserver.com... Ryan,
Is your service starting the application in an independent thread? As I'm sure you know from the docs, a service has only 30 seconds to return from the intial method call to be considered 'started'. Usually, you can just start the service in an independent thread so it will return immediately. If this is not the problem, post your service OnStart, Pause, etc... and
I'm sure people will help you.
Alex "Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message news:ek**************@TK2MSFTNGP12.phx.gbl... Arg. Let me try that again. I can install the service sucessfully now that I'm using the LocalSystem account instead of LocalService.
However, when I try to start the service now, I get this error:
--------------------------- Microsoft Management Console --------------------------- Could not start the TACS Runtime Service service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. If the problem persists, contact your system administrator.
I've tried moving the service over to running as my user account to see
if there was a permissions issue involved there, and it still gives me the same error. Is there any way to debug what is causing the service to fail to start?
Thanks. Ryan Gregg
"Ryan Gregg" <rg****@wheatlandsystems.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... I've written up a service in a C# using VS.NET to create the framework for me. However, I can't seem to get the service installed properly.
When I run the InstallUtil on the service exe, it errors out, reporting the following shortly after trying to create the event log:
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
It then rolls back the installation. I've tried looking online for
any information about what could be causing this, but haven't come up with much. Anyone out there have any ideas? Thanks a bunch.
Ryan Gregg
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Riggio |
last post by:
Is there a way to have a windows service instantiate a class that is a web
service, which will then be accessible to clients via HTTP?
Thanks,
-Mike
|
by: Artur Kowalski |
last post by:
I have a NotifyIcon in my Windows Service project and I am trying to
add a ContextMenu to this NotifyIcon or use some of the mouse events.
Everything isn't working. I think so base class of the...
|
by: SP |
last post by:
Hi All,
I wrote a windows service which is supposed to stop after specified amount
of time. I am calling OnStop() after specified time. OnStop() methods
executed but I dont see the service...
|
by: Scott Davies |
last post by:
Hi,
I'm looking for some help on a small program that I'm trying to develop in
VB.NET. I'm having trouble getting the code that I've written to work, can
anyone shed some light as to where I'm...
|
by: Scott Davies |
last post by:
Hi,
I'm looking for some help on a small program that I'm trying to develop in
VB.NET.
The program I'm trying to develop needs to be able to do the following:
- Select remote server
-...
|
by: Doug Bailey |
last post by:
I am trying to control a Windows Service via a Web Service interface.
(I am developing in .NET2003) I am using the ServiceController object
which allows me to read the state of the services with...
|
by: deko |
last post by:
When to use a privileged user thread rather than a windows service?
That's the question raised in a previous post . It was suggested that if the service needs to interact
with a WinForms app...
|
by: tshad |
last post by:
What would be a good way to check programmatically whether a service was
running?
We have a service that dies periodically and I need to check to see if this
service is running. I know how to...
|
by: dm3281 |
last post by:
I'm really starting to hate writing services -- or trying to, anyway.
Why do I need to rename my project to the service name?
Why do I need to set the "ServiceName" property to my service name?...
|
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= |
last post by:
Hi,
I created a web service that I want to host in windows service. The
problem is that if I host it as windows service it does not use the
configuration file. I have to define the binding,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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...
|
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...
|
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 project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |