Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8138735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:35:28+00:00 2026-06-06T11:35:28+00:00

I have written a custom Windows Service that writes data to a custom Event

  • 0

I have written a custom Windows Service that writes data to a custom Event Log (in the Windows Event Viewer).

For dev’ing the biz logic that the service uses, I created a Windows Form which simulates the Start/Stop methods of the Windows Service.

When executing the biz logic via the Windows Forms, info is successfully written to my custom Event Log. However, when I run the same biz logic from the custom Windows Service, information is failing to be written to the Event Log.

To be clear, I have written a library (.dll) that does all the work that I want my custom service to do – including the create/write to the custom Event Log. My Form application references this library as does my Windows Service.

Thinking the problem is a security issue, I manually set the custom Windows Service to “Log on” as “Administrator”, but the service still did not write to the Event Log.

I’m stuck on how to even troubleshoot this problem since I can’t debug and step into the code when I run the service (if there is a way to debug a service, please share).

Do you have any ideas as to what could be causing my service to fail to write to the event log?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:35:31+00:00Added an answer on June 6, 2026 at 11:35 am

    I discovered why my service wasn’t writing to the Event Log.

    The problem had nothing to do with any part of the code/security/etc that was attempting to write to the EL. The problem was that my service wasn’t successfully collecting the information that is written to the EL – therefore, the service wasn’t even attempting to write the log.

    Now that I fixed the code that collects the data, data is successfully writing to the event log.

    I’m open to having this question closed since the question was amiss to the real problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have written a custom windows service (VB.NET, .NET Framework 2.0) that takes a
I have a custom windows service written in c# that I need to install
I have written a C++ library that saves my data (a collection of custom
Assume i have a custom Windows application written in C#. This application has only
I have a C++ Win32 application that was written as a Windows GUI project,
I have written a custom dialog (form) that I can use in a C#
We have a custom setup engine (written in C#) that needs to continue the
I have written a windows service and have created a setup project to install
Say, you have a custom Windows service installed on a server. The service is
I have written a windows service, which monitors a database table for pending jobs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.