locked
Cannot run the Service as I get: faulting module kernel32.dll error

    Question

  • Hi,

       I have written a windows service which is installed on windows server 2008 machine under Network Service Account.
    This service is working fine, however from time to time, every 2, 3 days or sometimes 2 times per day it stops working,
    and today I was unable to rerun the service as I noticed an error logged in the events:

    Faulting module kernel32.dll, version 6.0.6001.18215, time stamp 0x4995344f, exception code 0x0eedfade, fault offset 0x0002f328, process id 0x3d0, application start time 0x01ca7a3833caf8b4.

    There was no way to run it again, then I rebooted the system and it is working fine right now.
    I found somewhere the information and gave it a try to set The Compatibility level to: Windows XP with SP2 for the windows service.

    Is there anything you could help me to investigate the problem?
    I found in the internet that such error is happening to the users from time to time, but have yet to find a solution for this...




    Friday, December 11, 2009 8:59 AM

Answers

  • Hi,

     

    According to the description, seems that you have an own develop application, so the issue seems to be related to Windows Development. As we mainly focus on the General question about Windows Server system and here is not the best support resource for Windows Development, it is recommend you to get further support in the corresponding community so that you can get the most qualified pool of respondents. Thanks for your understanding.

     

    General Windows Development Issues

    http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/threads

     

     

    Best Regards,

    Vincent Hu

    Wednesday, December 16, 2009 9:43 AM
    Moderator

All replies

  • Hi buddy,

    Due to the specific is developed by yourself, so I suggest you use sc.exe to debug this service startup crash issue.

    Little reference:

    C:\Program Files\Support Tools>sc /?

    ERROR:  Unrecognized command

    DESCRIPTION:
            SC is a command line program used for communicating with the
            Service Control Manager and services.
    USAGE:
            sc <server> [command] [service name] <option1> <option2>...


            The option <server> has the form "\\ServerName"
            Further help on commands can be obtained by typing: "sc [command]"
            Commands:
              query-----------Queries the status for a service, or
                              enumerates the status for types of services.
              queryex---------Queries the extended status for a service, or
                              enumerates the status for types of services.
              start-----------Starts a service.
              pause-----------Sends a PAUSE control request to a service.
              interrogate-----Sends an INTERROGATE control request to a service.
              continue--------Sends a CONTINUE control request to a service.
              stop------------Sends a STOP request to a service.
              config----------Changes the configuration of a service (persistent).
              description-----Changes the description of a service.
              failure---------Changes the actions taken by a service upon failure.
              sidtype---------Changes the service SID type of a service.
              qc--------------Queries the configuration information for a service.
              qdescription----Queries the description for a service.
              qfailure--------Queries the actions taken by a service upon failure.
              qsidtype--------Queries the service SID type of a service.
              delete----------Deletes a service (from the registry).
              create----------Creates a service. (adds it to the registry).
              control---------Sends a control to a service.
              sdshow----------Displays a service's security descriptor.
              sdset-----------Sets a service's security descriptor.
              showsid---------Displays the service SID string corresponding to an
                              arbitrary name.
              GetDisplayName--Gets the DisplayName for a service.
              GetKeyName------Gets the ServiceKeyName for a service.
              EnumDepend------Enumerates Service Dependencies.

            The following commands don't require a service name:
            sc <server> <command> <option>
              boot------------(ok | bad) Indicates whether the last boot should
                              be saved as the last-known-good boot configuration
              Lock------------Locks the Service Database
              QueryLock-------Queries the LockStatus for the SCManager Database
    EXAMPLE:
            sc start MyService

    Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]:

    You can obtain more information about it from the MSDN website:
    http://social.msdn.microsoft.com/Search/en-US?query=sc.exe&ac=8


    Hope that can assisting you. Have a nice weekend.
    a245ac8356cd89088a3a0e0536223c20 56cd89088a3a0e05 c093d70f088499c3a837cae00c042f14
    Friday, December 11, 2009 11:00 AM
  • Hi,

     

    According to the description, seems that you have an own develop application, so the issue seems to be related to Windows Development. As we mainly focus on the General question about Windows Server system and here is not the best support resource for Windows Development, it is recommend you to get further support in the corresponding community so that you can get the most qualified pool of respondents. Thanks for your understanding.

     

    General Windows Development Issues

    http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/threads

     

     

    Best Regards,

    Vincent Hu

    Wednesday, December 16, 2009 9:43 AM
    Moderator