473,749 Members | 2,402 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot Start VB.NET Service

Hi All,
Looking for a bit of help here. I have a VB.NET application that runs
as a service on a W2003 Server, well that sometimes runs as a service.
If I start the service while connected to the server via remote
desktop, the service starts successfully and all is hunky dory.
However, if I logon directly to the server as the same user, I get the
message:
"The <service> service on Local Computer started and then stopped.
Some services stop automatically if they have no work to do, for
example, the performance logs and alerts service"
The service does have work to do as it should enter a main loop which
processes continually (as it happens when connected via remote
desktop).
When stepping through the the code, it successfully creates a new
instance of the service:
ServicesToRun = New System.ServiceP rocess.ServiceB ase()
{New MyService}
But when attempting to actually run this service:
System.ServiceP rocess.ServiceB ase.Run(Service sToRun)
it just displays an empty message box with the title "Windows Service
Start Failure".
I have put in a Try\Catch but no error is returned.
I think it must have something to do with permissions if it starts
successfully through a remote desktop connection, but then I am using
the same user for both... I am at a loss!
Anyone got any ideas? I'll be forever grateful.

Jan 31 '06 #1
0 1308

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

Similar topics

3
2083
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 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.
3
15374
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 following error in the event log: Event ID: 7001 Description: The {Service Name}service depends on the Net Logon service which failed to start because of the following error: The service has returned a service-specific error code.
1
3675
by: JBMC | last post by:
Hi, I've just installed ASP.NET 1.1 (I have previously been using 1.0). Now I am unable to create a new asp.net application in VS.NET. The problems is as follows..... It appears that the W3SVC service is 'frozen' in ShutDown mode. When I do a 'NET STOP W3SVC' from the command line I get the following error "The service could not be stopped in it's present state. If the service is
4
3038
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 another machine (also XP pro SP2), using the URL: "http://nav:24035/WebServ/Service.asmx?op=HelloWorld", I get a "Cannot find server or DNS Error" error. There is no firewall on either machine. Windows firewalls are disabled. I'm able to access this...
3
14946
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 swLog As StreamWriter = File.CreateText("C:\myLog.txt") swLog.WriteLine("My Windows Service has just started.") swLog.Close() : swLog.Flush() End Sub
6
3375
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) I installed FrontPage server extensions to IIS on my computer while following instructions in a Microsoft ASP.Net MCSD training book. After installing the FrontPage Server Extensions I cannot create a new
7
7001
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 specification in details. I will be very happy if there is a visual tool, which can do this for me. Does anyone know such kind of tool (if it is free, this is going to be awesome)? Thanks in advance. Regards,
4
3181
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
1557
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 error: --------------------------- Services ---------------------------
3
7058
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). I have set the jobstep to write to an output file "T:\out.txt". If the job is owned by an admin, it runs fine and writes the output file. If it is owned by a non-admin user, it gets the following error msg: Warning: cannot write logfile...
0
8833
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9389
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8257
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6801
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6079
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3320
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2794
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2218
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.