473,789 Members | 3,060 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 2085
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
14850
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
2621
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
2360
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
1902
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
3092
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
4641
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
2880
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
1234
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
1689
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
9511
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,...
1
10139
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
9020
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
7529
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
6768
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
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
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
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
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.