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

  • Home
  • SEARCH
  • 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 951361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:43:25+00:00 2026-05-15T23:43:25+00:00

I have a C# console application that fetches data from more than 100 servers

  • 0

I have a C# console application that fetches data from more than 100 servers using SNMP and then writes the same in DB. I have scheduled the same in Windows 2008 R2 server’s Task Scheduler and is suppose to run after every 15 min. But the strange part is sometimes it runs and sometimes it don’t. If I run it manually then it runs every time. Proper Try Catch is there in the code and mails will be triggered is exception happens, but nothing of that sort is happening. The task process gets created and action completed is happening simultaneously.

I am confused, please suggest what to do!

  • 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-05-15T23:43:26+00:00Added an answer on May 15, 2026 at 11:43 pm

    Does it run for longer then 15 minutes? (So could you be ending up with more than one running, and interfering with each other?)

    Look in the Event Log’s Application Events to see if any crashes of your program are recorded.

    It sounds like the email notifications may not be working on your server, so I’d add some trace into it: Write to a log file the DateTime.Now every time it starts, and perhaps the name of each server as it is processed, and then then exit time. And of course, log the details of any exceptions you want to know about (ideally, add an unhandled exception handler so you can log all exceptions). Then you’ll be able to see exactly when it is executing and that it is processing everything properly. This will help diagnose if it is not being run, if it is being run but is failing immediately, or if it is doing a partial run and failing after processing a few servers. Then you can focus in on the point of failure.

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

Sidebar

Related Questions

We have an application that has one or more text console windows that all
I have a console application that will be kicked off with a scheduler. If
I have a console application that require to use some code that need administrator
I have a console application that I would like to run as 'NT AUTHORITY\NetworkService',
I have a console application that contains quite a lot of threads. There are
I have created a console application that calls a method on a webservice. I
I have a basic C# console application that reads a text file (CSV format)
I have a console application project in C# 2.0 that needs to write something
I have a console application written in Delphi. I saw that I can have
I have a C#/.NET program that can run both as a console application and

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.