473,698 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need better crash info for failing service

I have a system service written in C#.
For some reason it fails to start on our external web server (running a
tightened Windows 2000).
If I try to start the services after logging on, it works great.

The Application event log says in a ".NET Runtime" entry:

"The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: .NET Runtime
version 1.1.4322.573- myserverservice .exe - Common Language Runtime
Debugging Services: Application has generated an exception that could
not be handled.

Process id=0x238 (568), Thread id=0x23c (572).

Click OK to terminate the application.
Click CANCEL to debug the application.."

and the System log says:

"The XXX Server service failed to start due to the following error:
The service did not respond to the start or control request in a timely
fashion. "

It seems that I don't even get to the "Main" of my service exe since
that would have shown in my own log files.

So my question is:

How do I get a more intelligent description of what goes on here (i.e.
the exception that causes the failure".
I tried turning on Dr Watson, but he won't load at system startup time,
it seems. Surely, there must be some tool that can be triggered to get
me a more detailed crash dump.

Thanks for any help.
/Per
Nov 22 '05 #1
2 2074
Hi,

If starting the service after logging on and it works without any problems,
then I would check for a couple of things

1. Is the service dependent on another service that is still loading. You
can set the dependency in the installer class.
2. What is the serviceAccount set to? You can specify the Account to
LocalSystem (or as a local or network service). You mentioned that its
running on a tightened windows 2000 box, maybe it does not have adequate
permissions until the user has logged.

Regards,
Mujahid

"Per Bergland" <pe************ @SPAMcarmenta.s e> wrote in message
news:ug******** ******@TK2MSFTN GP10.phx.gbl...
I have a system service written in C#.
For some reason it fails to start on our external web server (running a
tightened Windows 2000).
If I try to start the services after logging on, it works great.

The Application event log says in a ".NET Runtime" entry:

"The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: .NET Runtime
version 1.1.4322.573- myserverservice .exe - Common Language Runtime
Debugging Services: Application has generated an exception that could
not be handled.

Process id=0x238 (568), Thread id=0x23c (572).

Click OK to terminate the application.
Click CANCEL to debug the application.."

and the System log says:

"The XXX Server service failed to start due to the following error:
The service did not respond to the start or control request in a timely
fashion. "

It seems that I don't even get to the "Main" of my service exe since
that would have shown in my own log files.

So my question is:

How do I get a more intelligent description of what goes on here (i.e.
the exception that causes the failure".
I tried turning on Dr Watson, but he won't load at system startup time,
it seems. Surely, there must be some tool that can be triggered to get
me a more detailed crash dump.

Thanks for any help.
/Per

Nov 22 '05 #2
mwazir wrote:
Hi,

If starting the service after logging on and it works without any problems,
then I would check for a couple of things

1. Is the service dependent on another service that is still loading. You
can set the dependency in the installer class. Not that I'm aware of. What kind of service could it possibly depend on
when the .NET loader can't even get to "Main"? Is there any way to get
Unix-style progress info on the Console during boot so that I can see
the service startup order? Maybe something in machine.config is failing
- I noticed only yesterday that that prevents any .NET application from
launching.
2. What is the serviceAccount set to? You can specify the Account to
LocalSystem (or as a local or network service). You mentioned that its
running on a tightened windows 2000 box, maybe it does not have adequate
permissions until the user has logged.

Already set to LocalSystem, but do permissions really change for
LocalSystem during boot?

The main question is still:
Who wrote that entry to the event log along with the text "Press Cancel
to Debug and OK to continue? (and how do I get a better log - dr watson
seems unable to write crash dumps to %allusers%.... at boot time.
Nov 22 '05 #3

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

Similar topics

19
14844
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2 scsi disks installed on the db box. Sqlserver is set to use max 1,4 GB RAM, and the sqlserver does not seem to be using it all.
2
492
by: Per Bergland | last post by:
I have a system service written in C#. For some reason it fails to start on our external web server (running a tightened Windows 2000). If I try to start the services after logging on, it works great. The Application event log says in a ".NET Runtime" entry: "The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display...
7
2618
by: José Joye | last post by:
On all my Windows Services (written in C# and for some of them in MC++), I got from time to time crashes at startup (1 out of 10 startup). It occurs really at the time I click on the "Start service" button. I have try/catch sections all around, and also have defined an "UnhandledExceptionEventHandler" in the ctor of the Service Main(). I'm still not able to catch what is going on :-(( The error is: >>The instruction at "0x791cfea1"...
7
2356
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a WinForms interface and then need to port that to a web app. I am kinda stuck on a design issue and need some suggestions / direction. Basically I have a business layer that I want to use to process any dataentry logic (row focus changes, data...
3
1897
by: seba | last post by:
I try to get some info about webserver - ProcessModelInfo.GetCurrentProcessInfo() On Windows 2000, IIS 5 everything works fine. On Windows 2003 IIS6 i am getting error: "Process information is available only when the ASP.NET process model is enabled". I checked my machine.config and <processModel> enabled is set to "true". Please, help Seba
4
3089
by: Sandy | last post by:
HI All, I have created a MFC exe using VC++ .NET 2003 on Windows XP Prof service pack 2 and it works properly on my machine, but when I run the same exe on a different machine (Windows XP Prof SP-2), The application is bought up and after some time its throwing a windows xp error dialog box saying, I am also running the same application on 2 more machines there
31
4626
by: Don Leverton | last post by:
Hi Folks, I've been away from this NG for quite a while, persuing other interests etc. I have made a few posts / replies here lately, and find this whole NG thing a little awkward and cumbersome.(I'm using Microsoft Outlook) Compare this with the hotrodders.com bulletin board (http://hotrodders.com/forum/) and you'll see what I mean ... it's awesome. You can include pictures with your posts (either as attachments if they are from your...
1
2874
by: jesper_lofgren | last post by:
Hello, i need to help here. I have a xmlnode as you can se below (full xml is in the bottom). I wonder how i can get the values inside the CSammanstallningLista . <CSammanstallning Id="Omrade" DefaultInclude="0"> <Rubrik>Område</Rubrik> <Text>Kallhäll. Fabriksvägen, Hus S, JÄRFÄLLA</Text> </CSammanstallning>
1
1229
by: jesper_lofgren | last post by:
Hello, i need to help here. I have a xmlnode as you can se below (full xml is in the bottom). I wonder how i can get the values inside the CSammanstallningLista . <CSammanstallning Id="Omrade" DefaultInclude="0"> <Rubrik>Område</Rubrik> <Text>Kallhäll. Fabriksvägen, Hus S, JÄRFÄLLA</Text> </CSammanstallning> - <CSammanstallning Id="OmradesNamn" DefaultInclude="0">
7
1686
by: Richard Cranium | last post by:
Trying to implement a simple rrd. Code below. When calling rrd_write, 8 successful times in a row, the 9th one causes this to happen: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000001 0x00001f4f in rrd_write (rrd=0x3000f0) at rrd.c:81 81 rrd->value = va_arg(ap, int); I washed it through GDB a few times, and notice that starting from rrd->value...
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9170
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8902
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
8873
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5862
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();...
0
4372
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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
2339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
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.