473,396 Members | 1,792 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.

HELP - schedule VB .NET app in Scheduled Tasks

Hi

I have created a VB .NET application which emails all staff in the
office. I would like it to run every morning at 8am. I thought that the
best way to schedule this would be through Windows Task Scheduler as I
have to start it up manually at the moment.

The program starts up fine at 8am, but it will not send out any emails.
It writes an entry to the log which has been created in the SQL Server
2000 database to say that it has commenced, but it does not send any
of the emails to any of the recipients.

At first I thought it may be encountering an error. So I have
encapsulated all code in a try-catch statement and write any of the
errors that are caught to the database, but no errors are written,
hence I presume no errors are written.

Also, when the application is started I cannot visually see it running.

Can someone please help ????

I am running the app under terminal services and I have all the correct
privelidges set. The program runs fine when I double-click the icon off
the desktop, but it won't send email through the task scheduler.

Thank you in advance.

Nick
Nov 20 '05 #1
1 3681
Hi Nick,

Task Scheduler is a service so any programs it starts will run under the context of the service which is why you see no user interface. The reason that your program never sends any emails is probably to do with permissions as by default, this service is set up to run under the machine's LocalSystem account which will not have have any privileges outside of the local machine.

An option would be to reconfigure the Task Scheduler service to run under the context of a network account that has the required network privileges.

HTH,
Gary
Nov 20 '05 #2

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

Similar topics

5
by: Bart Simpson | last post by:
Hi, I want to control 'Scheduled Tasks' in Windows 2003 by python program. But I couldn't find any Python module about win32 'Scheduled Tasks'. I could find only Perl module about it. (see...
1
by: Steven | last post by:
This seems like a puzzle. We are able to successfully develop and deploy an app using vb.net. The app runs great when you double click on the icon. However, if you try to schedule the app to...
13
by: Mike | last post by:
Normally scheduling a job is a very elementary operation but for some hidden reason I've been unable to schedule a job which runs on a 28 day cycle, even though I have at least 16 other jobs...
1
by: Manish Jain | last post by:
Platform : ASP.Net/C#, Sql Server 2000 (Web Project) ----------------------------------------------------------- I need to schedule some tasks like Alert Generation at say 0:00 hrs everyday. And...
6
by: John Bowman | last post by:
Hi, I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found in the control panel "Scheduled Tasks" applet. I realize that this "applet" really just opens the tasks folder,...
23
by: pamelafluente | last post by:
Hi guys! I want to do a large number of scheduled task (say 80). Each task can be run at a certain time every given weekday. For instance at 10am and 5pm on each monday, etc. I would like to...
1
by: gjiang_usenet | last post by:
Hi, Recently, I got a new client running DB2 UDB EE V7 on Windows 2000. (I am not a Windows guy and do not like it at all.) I found that this database is backed up (online) daily. However, I...
0
by: amduke | last post by:
Hello, I'm using the Microsoft Scheduler to schedule 6 access application. Each application is scheduled on a different time starting at 03:00 am and the last one is scheduled 07:30 am. The...
2
by: ami'n | last post by:
i'm also not newbie to Access but i'm not programmer. I have a need to automate some task in Access. Every monday which is the first day of the week, I have to send a MS Excel file containing data...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
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,...
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.