VB.Net Windows Service Startup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My esteemed VB.Net gurus,

I posted this question a week or so ago and recieved 1 response that helped
me somewhat but really did not solve the problem (but I do appreciate the
response).

I have spent countless hours searching everything I can think of but I
cannot solve this problem, so I post again with hopes that someone knows
something that will put me on the right track.

I have created a Windows Service in VB.Net. I can successfully install and
start the service on a Windows 2000 Server box but cannot on a windows 2003
box. The error I receive is the following:

Server 'ServiceName' failed to start. Verify that you have sufficient
privileges to start system Service.

I am logged into the Windows 2003 box as Administrator so I would think that
I have sufficent rights.

I have set the Account property of the ServiceProcessInstaller of the
service to use every account under the sun as the account in which to start
and
run the service.

I have also tried using InstallUtil executable and that has failed also.

Can someone please point me in the right direction?
 
The "Verify that you have sufficient privileges to start system Service"
message may be misleading and it may be a security issue in the service code
itself.
Can you successfully install the service using InstallUtil from the right
DOTNET framework version? Run the InstallUtil from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322 for Framework 1.1. Try
un-install it first if it is already installed.
After it is installed, it should work, except if it is trying to do
something where security blocks the local system account, which is the
default account running the service. In this case go to services, right
click on this service, go properties and change the Log On to be the Admin
User or a network account, etc.
To verify that you are on the right track, create a Win Service that does
nothing, you should be able to install/start/stop it successfully.
 
Is your service running on a certain user's profile or as a Local System?

What input/outputs are there on the service startup? Is it writing to an
event log for example?
 
Try adding the assembly to the GAC and setting it's permissions to Full using
the .NET Wizards in Administrative tools.
 
Back
Top