473,394 Members | 1,944 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,394 software developers and data experts.

VB.Net Windows Service Startup

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?

--
Thanks,

Scott
Nov 21 '05 #1
4 2906
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.

"SQLScott" <SQ******@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
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?

--
Thanks,

Scott

Nov 21 '05 #2
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?

Nov 21 '05 #3
Try adding the assembly to the GAC and setting it's permissions to Full using
the .NET Wizards in Administrative tools.

"SQLScott" wrote:
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?

--
Thanks,

Scott

Nov 21 '05 #4
Try adding the assembly to the GAC and setting it's permissions to Full using
the .NET Wizards in Administrative tools.

"SQLScott" wrote:
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?

--
Thanks,

Scott

Nov 21 '05 #5

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

Similar topics

3
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
5
by: Mark Rae | last post by:
Hi, I'm looking for advice concerning what to do if a Windows service does not find a "viable" working environment at startup. E.g. I have a Windows service which does the following: 1)...
3
by: Amjad | last post by:
Hi, I just wrote a test Windows Service that creates a text file on startup (please see my code below). The file is never created. Protected Overrides Sub OnStart(ByVal args() As String) Dim...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
1
by: Sergey Krutous | last post by:
Can you please help me to resolve the following issue: I developed a windows service. At start up (I have overriden OnStart method) it connects to a web service and if the connection fails the...
2
by: Cubaman | last post by:
Hello everybody. I'm currently developing a windows service. In OnStart a launch two threads that carry on some work while the service is running. My problem comes from the fact that once the...
4
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...
1
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... After I installed my .net windows service, I tried to control some of the behavior with the Start Parameters: in the services control parameter. I can put a value in the box but for some...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
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:
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.