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. 2 2832
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.
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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,...
|
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...
|
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...
|
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. ...
|
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...
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |