Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Hosting and Servers
  4. Scheduled Tasks aren't working

Scheduled Tasks aren't working

Scheduled Pinned Locked Moved Hosting and Servers
csharphelpvisual-studiosysadminwindows-admin
4 Posts 2 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KreativeKai
    wrote on last edited by
    #1

    I have about 30 VB Apps that are humming along on a Windows 2008 server using scheduled tasks. They all do a variety of simple to complex tasks from pulling data and merging letters on a monthly basis, posting data on our website, converting data to crystal reports, etc. It’s now past the time for us to get off of our Windows 2008 server so I’m taking the apps and converting them up from Visual Studio 2012 to Visual Studio 2019. No real hurdles. Everything is converting fairly clean and running great. Problems begin when I set the apps up on Windows Server 2019. We have a user that is used for processing tasks and has the appropriate rights on the server. If the tasks are setup to run overnight and I leave the server signed on, the tasks process fine. If I sign off of the server the tasks show that they ran and that they completed successfully, but never finish processing. The status shows they completed at the same time the schedule is triggered, and most of the tasks normally should run 15 minutes to an hour. Nothing in the event log to say it failed, and I have a good bit of error code built into each program that would fire an error if one was triggered. The task is setup to “Run whether user is logged on or not”, and also “Run with highest privileges”. Did something change since 2008 regarding scheduled tasks that I should be aware of? Any suggestions / help with this is appreciated. I’ve Googled it, but haven’t had much luck.

    Lost in the vast sea of .NET

    L 1 Reply Last reply
    0
    • K KreativeKai

      I have about 30 VB Apps that are humming along on a Windows 2008 server using scheduled tasks. They all do a variety of simple to complex tasks from pulling data and merging letters on a monthly basis, posting data on our website, converting data to crystal reports, etc. It’s now past the time for us to get off of our Windows 2008 server so I’m taking the apps and converting them up from Visual Studio 2012 to Visual Studio 2019. No real hurdles. Everything is converting fairly clean and running great. Problems begin when I set the apps up on Windows Server 2019. We have a user that is used for processing tasks and has the appropriate rights on the server. If the tasks are setup to run overnight and I leave the server signed on, the tasks process fine. If I sign off of the server the tasks show that they ran and that they completed successfully, but never finish processing. The status shows they completed at the same time the schedule is triggered, and most of the tasks normally should run 15 minutes to an hour. Nothing in the event log to say it failed, and I have a good bit of error code built into each program that would fire an error if one was triggered. The task is setup to “Run whether user is logged on or not”, and also “Run with highest privileges”. Did something change since 2008 regarding scheduled tasks that I should be aware of? Any suggestions / help with this is appreciated. I’ve Googled it, but haven’t had much luck.

      Lost in the vast sea of .NET

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      KreativeKai wrote:

      I’ve Googled it, but haven’t had much luck.

      Have you raised it with Microsoft, or checked the documentation to see what changes there are?

      K 2 Replies Last reply
      0
      • L Lost User

        KreativeKai wrote:

        I’ve Googled it, but haven’t had much luck.

        Have you raised it with Microsoft, or checked the documentation to see what changes there are?

        K Offline
        K Offline
        KreativeKai
        wrote on last edited by
        #3

        From research it seems like Microsoft rewrote scheduled tasks due to some security issues. It seems like scheduled tasks only handle items that are non-interactive. All my tasks don't have any interaction, but they do tasks with applications like Attachmate Reflections to pull data from our HP3000. I've tried to make a test app as non-interactive with no background screens popping up, or anything, but it still doesn't work. I'm putting debug statements in this program to see if I can find where it is bailing even though Microsoft says it finished successfully.

        Lost in the vast sea of .NET

        1 Reply Last reply
        0
        • L Lost User

          KreativeKai wrote:

          I’ve Googled it, but haven’t had much luck.

          Have you raised it with Microsoft, or checked the documentation to see what changes there are?

          K Offline
          K Offline
          KreativeKai
          wrote on last edited by
          #4

          I started an MSDN call today. We'll see what happens.

          Lost in the vast sea of .NET

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups