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 6050655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:42:46+00:00 2026-05-23T07:42:46+00:00

So I wrote a VB.net project in Visual studio. I have a scheduled task

  • 0

So I wrote a VB.net project in Visual studio. I have a scheduled task that is set to run the program every morning at 10AM.

  • If I use windows explorer and double click the application, it runs fine.
  • If I open task scheduler, open the task properties, and browse to the application, then choose run, the program fails, due to Runtime exceptions.

I know I have the path entered correctly, since I can debug the instance when it crashes from the task scheduler. VS2010 pulls up my source code…

Any Ideas?

I feel like I’ve tried everything..

Update

The exception is System.IO.FileNotFoundException, remember, it works fine when I double click the app. If attach a debugger to the process after it is executed from the task scheduler, I can then restart the debugger, and Voila!, The application runs fine.

  • 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-23T07:42:46+00:00Added an answer on May 23, 2026 at 7:42 am

    When you create a task, under the “Edit Action” properties, there is a field “Start In (Optional)” It is not optional. It is critical this is populated with the path to the program you are executing. if it is not your scheduled task will fail… It seems redundant but it fixes the issue.

    Thanks Microsoft.

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

Sidebar

Related Questions

I have an MVC project that I would like to write in .NET 4.0
I created a C# .NET 3.5 project with Visual Studio 2010, add some classes
I get the following error when running my Visual Studio 2008 ASP.NET project (start
HI, i developed application in Visual Studio... ASP.NET project with master.page. I do it
I have a Visual Studio 2008 solution with two projects (a Word-Template project and
I have built my new website in Visual Studio 2010 (C# - ASP.NET 4).
I have a Visual Studio 2008 C++ Windows Mobile 6.5 project where I would
I am developing an ASP.NET project with C#, and I wrote a page named
One of my coworkers wrote a .NET windows service that converts .doc to .docx
I have exposed a Sonic ESB process as a webservice and wrote a .NET

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.