Windows 10: asp.net core application not running properly in task scheduler

Discus and support asp.net core application not running properly in task scheduler in Windows 10 Software and Apps to solve the problem; I have an asp.net core application which inserts data into sql server. It runs fine in command line but when I put it in a batch file and create a task... Discussion in 'Windows 10 Software and Apps' started by mcp111, Aug 14, 2019.

  1. mcp111 Win User

    asp.net core application not running properly in task scheduler


    I have an asp.net core application which inserts data into sql server. It runs fine in command line but when I put it in a batch file and create a task to run that batch file every 5 minutes in task scheduler, it is not working properly.
    It shows task as running but fresh records are not getting inserted in sql server.
    why?

    :)
     
    mcp111, Aug 14, 2019
    #1

  2. Window's Task Scheduler Not Running

    Hi,

    To assist you better, kindly provide us more details by answering the following questions:

    • Have you tried recreating the task? If so, are you getting the same issue?
    • Have you tried creating a new task?
    Meanwhile, we suggest that you ensure that the Task Scheduler is running. You can verify if the service is running by following these steps:

    • Press Windows key + R on your keyboard.
    • Type services.msc and hit Enter.
    • Under Services (Local), make sure that the Task Scheduler service's status is
      Started or Enabled.
    Should you need further assistance, feel free to get back to us.
     
    Monica Cam, Aug 14, 2019
    #2
  3. Unable to run Task Scheduler

    Hello Varun,

    Let's determine the cause of the issue. To get started, I'd like to get the following information:

    • Is this your first time to encounter this issue? If so, did you make any changes to your computer's configuration prior to this?
    • Are you getting any error messages?
    • Can you also please confirm the current build of your Windows 10?

      (Type winver into the Cortana search box, then hit
      Enter
      .)

    Meanwhile, I suggest that you try starting the Task Scheduler through command line. To do so, please follow these steps:

    • Open Command Prompt (Admin).
    • Type this net start task scheduler and hit Enter.

    We're looking forward to your response.
     
    Antoneth Ber, Aug 14, 2019
    #3
  4. asp.net core application not running properly in task scheduler

    Scheduled tasks run with elevated privileges can't access stored Windows credentials

    It seems that after Creators update scheduled tasks run with elevated privileges ('run with highest privileges' option) can't access stored Windows credentials. Is that a bug or an intentional change and is there a recommended workaround?

    Here's one way to reproduce the behaviour:

    • Start Credential Manger and add some Windows share credentials.
    • In a console window type 'cmdkey /list', which should list the added credentials
    • Create a task in a task manager:
      • Trigger: on user logon
      • Action: run cmd.exe
      • Tick the 'run with highest privileges' option
    • Reboot the machine and log in
    • In the console window (let's call it 'console 1') opened from the scheduled task type 'cmdkey /list'. This most likely won't display the credentials added in step 1 and properly listed in step 2. ->
      This looks like a bug
    • Now, without closing 'console 1' open another console window as an administrator (let's call it 'console 2') and type 'cmdkey /list'. This will properly list credentials added in step 1.
    • Switch to 'console 1' and type 'cmdkey /list' again. This time the credentials are listed properly, unlike in step 5. It looks like an access to Windows credentials was somehow 'unlocked' by step 6.
     
    MarcinMrowiec, Aug 14, 2019
    #4
Thema:

asp.net core application not running properly in task scheduler

Loading...
  1. asp.net core application not running properly in task scheduler - Similar Threads - asp net core

  2. asp.net core application not running properly in task scheduler

    in Windows 10 Support
    asp.net core application not running properly in task scheduler: I have an asp.net core application which inserts data into sql server. It runs fine in command line but when I put it in a batch file and create a task to run that batch file every 5 minutes in task scheduler, it is not working properly. It shows task as running but fresh...
  3. Task Scheduler Not Running

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler Not Running: I've already tried and a lot of solutions for this but sadly I still don't have a solution. I've also tried these steps in this link (https://computerstepbystep.com/task_scheduler_service.html), still no luck What happened is I'm trying to update my GeForce Experience but I...
  4. Run shortcut as a scheduled task.

    in Windows 10 Support
    Run shortcut as a scheduled task.: Run shortcut as a scheduled task sounds simple but for the life of me I just can't get this one shortcut to work in the scheduler. This shortcut is for the PrivateInternetAccess VPN app (V0.82) to run from a fixed location. I have a shortcut with these details... Target:...
  5. Task Scheduler doesn't run script

    in Windows 10 Software and Apps
    Task Scheduler doesn't run script: Hey Microsoft Community, I'm trying to create a task in Task Scheduler that runs a specific script. The issue is that when the task runs (whether I do it manually or if it's scheduled), the script doesn't actually get executed. I know that the script works, and I have tried...
  6. Windows Task Scheduler not running

    in Windows 10 BSOD Crashes and Debugging
    Windows Task Scheduler not running: Hello, i am trying to install Nvidia Geforce experience but it says Windows Task Scheduler not running, so i cant install it. i even went to services.msc and tried to start but i get error message that it "started and stopped suddenly."Some services may stop if they are...
  7. Task Scheduler-service not running?

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler-service not running?: I have a problem with task scheduler-service. I wanted to update my Nvidia driver when i got a message that i could not update it because task scheduler wasnt running tried so many things but nothing is working and i really want to know why. can someone please help?...
  8. Bing.com now runs on .NET Core 2.1

    in Windows 10 News
    Bing.com now runs on .NET Core 2.1: Bing.com is a cloud service that runs on thousands of servers spanning many datacenters across the globe. Bing servers handle thousands of users’ queries every second from consumers around the world doing searches through their browsers, from our partners using the Microsoft...
  9. How to run a program in task scheduler?

    in Windows 10 Software and Apps
    How to run a program in task scheduler?: I have installed Speedfan and it won't run at the windows startup, so I tried to schedule it in task scheduler, I am not familiar with using it and wondered if there is a guide for W10 64 anywhere or if anyone can tell me how? Many thanks in advance! John. 13863
  10. Task Scheduler not running programs...

    in Windows 10 Support
    Task Scheduler not running programs...: Hello Guys, I have a Windows 10 Laptop. Tried using Task Scheduler to automatically run Good Sync program on a predefined schedule. However, it fails to run the program. My user account has administrative priviledges. Thanks for your replies. 37970