473,545 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Service never starts only on Windows 2000 Server

A windows service I've created runs on all boxes except Windows 2000
server.

The windows service initializes (i.e., the Service:ServieB ase class
gets constructed),
but the OnStart() method never fires.

On the same server, I have another service I've created which runs
just fine. Both services were installed using the Windows Installer,
exactly the same deal... both services run on other machines too.
BTW: when the constructor starts, I log "Service Initializing" at the
top, and "Service Initialized" at the bottom of the constructor, and
both get logged.
BUT THE ONSTART method never fires!
Service status remains forever: "STARTING" I have to kill the
process
to make it go away!
I also am handling AppDomain.Curre ntDomain.Unhand ledException += ...
but that never fires either.
WORKS on Windows Server 2003, Windows XP, Vista, etc...
DOES NOT WORK in Server 2000.

What gives?
Jun 27 '08 #1
1 1494
I found this on another forum; someone had the same problem and came up with
the following solution:

The following service will hang on startup, when run under Windows 2000,
if the OnSessionChange () function is present and enabled. If the
function is commented out, and CanHandleSessio nChangeEvent is set to false,
the service starts up correctly.

CanHandleSessio nChangeEvent requires full trust for the immediate caller.
This member cannot be used by partially trusted code.

Hope the above helps - I havent tested this cause I dont have a Win2K box
available right now.

--
Misbah Arefin
https://mcp.support.microsoft.com/profile/MISBAH.AREFIN
http://www.linkedin.com/in/misbaharefin
"ERobishaw" wrote:
A windows service I've created runs on all boxes except Windows 2000
server.

The windows service initializes (i.e., the Service:ServieB ase class
gets constructed),
but the OnStart() method never fires.

On the same server, I have another service I've created which runs
just fine. Both services were installed using the Windows Installer,
exactly the same deal... both services run on other machines too.
BTW: when the constructor starts, I log "Service Initializing" at the
top, and "Service Initialized" at the bottom of the constructor, and
both get logged.
BUT THE ONSTART method never fires!
Service status remains forever: "STARTING" I have to kill the
process
to make it go away!
I also am handling AppDomain.Curre ntDomain.Unhand ledException += ...
but that never fires either.
WORKS on Windows Server 2003, Windows XP, Vista, etc...
DOES NOT WORK in Server 2000.

What gives?
Jun 27 '08 #2

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

Similar topics

0
291
by: big A | last post by:
I am experiencing an issue that i have seen posted with various descriptions but lacks any answers. I have .Net Framework 1.1 services that run without issue on windows 2000 professional; however when set to automatic on windows 2000 server the service control manager reports that the "service hung on starting". Sometimes when the message...
0
977
by: big A | last post by:
I am experiencing an issue that i have seen posted with various descriptions but lacks any answers. I have .Net Framework 1.1 services that run without issue on windows 2000 professional; however when set to automatic on windows 2000 server the service control manager reports that the "service hung on starting". Sometimes when the message...
0
1197
by: Victor Marquez | last post by:
Hi All, We have been experiencing problems with StateServer. The service is hanging-up and stops responding further requests. Facts: - There are not events in Application Logs (not 1072/1076 problems).
4
3698
by: Andy Baker | last post by:
I have an Windows forms application written in VB.NET that uses a SQL Server 2000 back end database with Windows authentication. There is no problem accessing the database from my application, or from an installed version of the application on another machine. My problem is that I would like to access the database overnight unattended to...
0
7664
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7766
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5981
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...
1
5341
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...
0
4958
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...
0
3463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1897
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
0
715
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...

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.