473,395 Members | 1,941 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.

Cannot Start my VB.Net Service

Hello. I am able to succesfully build and install my VB.Net Windows Service,
using the Command Line InstallUtil #EXE PATH#.

However, when I press start in MMC, to start the service, I get this error
message:

Could not start the #SERVICENAME# 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.

There is nothing in the install log to suggest that the installation was not
succesful.

Can anyone suggest why this is hapenning?
Jul 21 '05 #1
3 2061
does your service attempt to pop up a window? If so, it probably won't
start. Does it write to a file or contact a database (even to log errors)?
If so, it may need an identity, and it may be failing during the initial
constructors due to untrapped errors.

Just guesses,
--- Nick

"m00nm0nkey" <m0********@discussions.microsoft.com> wrote in message
news:E9**********************************@microsof t.com...
Hello. I am able to succesfully build and install my VB.Net Windows Service, using the Command Line InstallUtil #EXE PATH#.

However, when I press start in MMC, to start the service, I get this error
message:

Could not start the #SERVICENAME# 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.

There is nothing in the install log to suggest that the installation was not succesful.

Can anyone suggest why this is hapenning?

Jul 21 '05 #2
Nick, in answer to your questions, No, it doesn't attempt to show a popup
window.

It attempts to write a line to the Event Log. It then passes the timer
control (byref) to a function I wrote, which, in turn, reads from a database,
and starts the timer.
it may be failing during the initial constructors due to untrapped errors.


That's a good point; Although my OnStart only has two lines, it didn't have
a try/catch. However, I've added these lines, rebuilt, reinstalled, and i'm
still faced with the same error.

It's also worth noting that i've managed to successfully install and start
this service on a different machine. However, I really need to install and
test this service on my own development PC, but it won't start.
Jul 21 '05 #3
I'm really not sure. What account are you using to start the service? If
you provide your admin account, does the service start?

Did you say "timer control"? You mean "timer object"... right? Controls
live on forms and forms are a real problem in a service.

--- Nick

"m00nm0nkey" <m0********@discussions.microsoft.com> wrote in message
news:7B**********************************@microsof t.com...
Nick, in answer to your questions, No, it doesn't attempt to show a popup
window.

It attempts to write a line to the Event Log. It then passes the timer
control (byref) to a function I wrote, which, in turn, reads from a database, and starts the timer.
it may be failing during the initial constructors due to untrapped
errors.
That's a good point; Although my OnStart only has two lines, it didn't have a try/catch. However, I've added these lines, rebuilt, reinstalled, and i'm still faced with the same error.

It's also worth noting that i've managed to successfully install and start
this service on a different machine. However, I really need to install and
test this service on my own development PC, but it won't start.

Jul 21 '05 #4

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

Similar topics

3
by: Bryan | last post by:
We created a Windows Service with C#. The service will start OK on computers that are a member of a domain, but when we try to start it on a server that is configured for a workgroup we get the...
4
by: naveed | last post by:
I have the simple Hello World web service running in debug mode on my development machine (XP Pro SP2). I'm using VS2005. I'm able to access it from my machine. When I try to access it from...
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...
3
by: m00nm0nkey | last post by:
Hello. I am able to succesfully build and install my VB.Net Windows Service, using the Command Line InstallUtil #EXE PATH#. However, when I press start in MMC, to start the service, I get this...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
7
by: George Jordanov Ivanov | last post by:
Folks, I have to design the WSDL files of a bunch of XML Web Services. But, unfortunately, I am not very keen on writing the WSDL file line by line, and moreover be aware of the whole standard...
4
by: kkt49 | last post by:
# vim: et sw=4 ts=8 sts from wxPython.wx import * import sys, os, time import pywintypes import win32serviceutil import win32service import win32event import win32process
1
by: seopapertiger | last post by:
I cannot get ASP.NET to run. When attempting to execute a script, the page times out with a basic 404 message. When attempting to start the ASP.NET State Service, I receive the following...
3
by: donnyma | last post by:
I have a problem that looks like it has not been discussed before in these groups. I have a simple SQLAgent job that runs sp_who (could be anything, but let's just say sp_who for this example). ...
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: 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
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.