473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VB.NET Executable Fails to in Task Scheduler Without a Console SessionRun

Hello, I was wondering if someone can help. I have built a VB.NET
application that is just a simple .exe which calls Excel and inputs some
data. But when run in a Task Scheduler setting, the application will only
run if a console session is logged in, ie: logged into the computer. If I
logout of the session, and let Task Scheduler run, it fails with the
following error in the Event Viewer.

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found.

There is more to the error, but the application does this in both Debug or
Release compilations. Can anyone help please. Thanks.
Nov 20 '05 #1
2 2831
Worth putting all of your code into Try, Catch blocks with a WriteLine to
write any exceptions to the event log? Also worth checking the
c:\winnt\schedlgu.txt log file for any clues.
"microsoft.private.windows.netserver.setup" <ra***********@shaw.ca> wrote in
message news:OW**************@TK2MSFTNGP12.phx.gbl...
Hello, I was wondering if someone can help. I have built a VB.NET
application that is just a simple .exe which calls Excel and inputs some
data. But when run in a Task Scheduler setting, the application will only
run if a console session is logged in, ie: logged into the computer. If I
logout of the session, and let Task Scheduler run, it fails with the
following error in the Event Viewer.

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found.

There is more to the error, but the application does this in both Debug or
Release compilations. Can anyone help please. Thanks.

Nov 20 '05 #2
Worth putting all of your code into Try, Catch blocks with a WriteLine to
write any exceptions to the event log? Also worth checking the
c:\winnt\schedlgu.txt log file for any clues.
"microsoft.private.windows.netserver.setup" <ra***********@shaw.ca> wrote in
message news:OW**************@TK2MSFTNGP12.phx.gbl...
Hello, I was wondering if someone can help. I have built a VB.NET
application that is just a simple .exe which calls Excel and inputs some
data. But when run in a Task Scheduler setting, the application will only
run if a console session is logged in, ie: logged into the computer. If I
logout of the session, and let Task Scheduler run, it fails with the
following error in the Event Viewer.

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be
found.

There is more to the error, but the application does this in both Debug or
Release compilations. Can anyone help please. Thanks.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stephen | last post by:
Hi All, I'm trying to find a way where I can schedule a task to be run within a web site, either in VB (COM) or within the web site (ASP). What I want to do is to run a daily scheduled task...
5
by: Attila | last post by:
Hi. I am looking for a site or some coding ideas to run specific subs or programs at certain times and/or dates. For example, I would like to automate pulling data via ADO(.NET) at 6 am, on...
4
by: Christina | last post by:
Dear All, How can I pop up the windows task scheduler inside of my .net application? Such as I have a button called Schedule Now, after clicking it, the Add Scheduled Task window will pop up,...
2
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by...
9
by: chandru.govind | last post by:
Hi, I built a C# application that scans a folder and pops up a form if there are any files present in the folder. I have scheduled this as a task to repeat every 1 min using the windows task...
7
by: Shane Story | last post by:
Have an app and would like to allow easy addition of MYAPP.EXE /F /P (for example) my prog with command line args, as a job to be run. Would like to make it easier on the user to run the app. ...
0
by: microsoft.private.windows.netserver.setup | last post by:
Hello, I was wondering if someone can help. I have built a VB.NET application that is just a simple .exe which calls Excel and inputs some data. But when run in a Task Scheduler setting, the...
1
TRScheel
by: TRScheel | last post by:
Here's a good one. I have spent all day researching this, and I can not for the life of me find a method that will work. All I want to do... is add a scheduled task to the Task Scheduler. I...
1
by: =?Utf-8?B?U3Jpaw==?= | last post by:
Hi, I have a console application which needs to be run at periodic intervals. So, I want to add it in Windows Task Scheduler but at the same time, I need to pass parameters to the Application...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.