473,491 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Scheduled Tasks and .NET console apps

6 New Member
I have a simple .NET 1.1 console application, written with Visual Studio .NET 2003, that needs to be run on a Windows XP system as a scheduled task. When run on its own, the program executes with no errors. When run as a scheduled task on a computer with debugging tools installed, it runs with no errors.

When run as a scheduled task on a computer with no debugging tools installed, namely the Windows XP system it is supposed to be run on, it crashes with a .NET framework error. Since there are no debugging tools installed on that machine, the only thing I can get out of the error are the process and thread IDs, which of course are pretty much useless for a non-threaded console application.

The crash occurs regardless of whether the scheduled task is run as the current user, run as a user with admin privileges, or even run manually in the scheduled tasks window by right-clicking on the task and selecting "Run," while logged in as a system administrator. It also runs without error on the development system (also using Windows XP), under all those same circumstances.

All I can think of is that there is some kind of misconfiguration in the .NET installation on the target system, but I have no idea how to go about preventing it when re-installing Windows XP and .NET from scratch, which we've done several times already, let alone fixing it. Installing Visual Studio .NET 2003 on the target machine is not an option.

Has anyone else had this problem? If so, is there a way to fix it, and if so, how?
May 15 '07 #1
2 3088
Motoma
3,237 Recognized Expert Specialist
I am sorry if you stated this, but does it run correctly on the target machine, if you are running it without the scheduler?

Does the Event Viewer give you any information regarding the crash?

Have you tried configuring the Security Policy in the .NET configuration (Control Panel > Administrative Tools >> .NET Configuration 1.1)?

I have a simple .NET 1.1 console application, written with Visual Studio .NET 2003, that needs to be run on a Windows XP system as a scheduled task. When run on its own, the program executes with no errors. When run as a scheduled task on a computer with debugging tools installed, it runs with no errors.

When run as a scheduled task on a computer with no debugging tools installed, namely the Windows XP system it is supposed to be run on, it crashes with a .NET framework error. Since there are no debugging tools installed on that machine, the only thing I can get out of the error are the process and thread IDs, which of course are pretty much useless for a non-threaded console application.

The crash occurs regardless of whether the scheduled task is run as the current user, run as a user with admin privileges, or even run manually in the scheduled tasks window by right-clicking on the task and selecting "Run," while logged in as a system administrator. It also runs without error on the development system (also using Windows XP), under all those same circumstances.

All I can think of is that there is some kind of misconfiguration in the .NET installation on the target system, but I have no idea how to go about preventing it when re-installing Windows XP and .NET from scratch, which we've done several times already, let alone fixing it. Installing Visual Studio .NET 2003 on the target machine is not an option.

Has anyone else had this problem? If so, is there a way to fix it, and if so, how?
May 15 '07 #2
Tatter
6 New Member
I am sorry if you stated this, but does it run correctly on the target machine, if you are running it without the scheduler?

Does the Event Viewer give you any information regarding the crash?

Have you tried configuring the Security Policy in the .NET configuration (Control Panel > Administrative Tools >> .NET Configuration 1.1)?
Sorry, yes, it runs fine on the target machine when running it without the scheduler.

No, the Event Viewer does not even record when the program is started by the task scheduler, let alone when it crashes.

I haven't tried checking the Security Policy for .NET yet. I'll have to check with our configuration management department before making any changes, but that may well be the problem. All we've tested so far are the directory permissions.
May 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
8576
by: Greg Bryant | last post by:
I'm doing some work for a company that has an auction site running in coldfusion. They're not real happy with it, and it needs a major overhaul, so I'm looking at redoing it, and while I'm at it,...
5
4756
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...
3
22937
by: Lenn | last post by:
Hi, I developed a console .exe application which is going to run on scheduled basis, it will be scheduled to run in Windows Scheduled tasks. Client wants some kind of utility that would help them...
7
10445
by: Dave Mandy | last post by:
Hi All I have written a C# console based program. The first line of code simply writes to the event log and this works 99% of the time, whether being run manually or kicked off by Windows...
0
4220
by: Satish | last post by:
Scheduled Tasks (.Net ) does not run when server is logged off (Windows 2003): I have a .net executable (command line exe) which performs certain business operations. I can run the program...
3
3419
by: kj7ny | last post by:
How can I access and manipulate Scheduled Tasks in Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to control the windows services on...
1
1622
by: naveensrirangam | last post by:
We want to do a total 10 number of scheduled tasks daily. These tasks will run in certain time in daily and every task application developed in different technologies . Now we are looking to do...
0
1333
by: BD | last post by:
I'm running 8.2 on Windows. I have a situation where several scheduled tasks were created in Task Center, under an ID of a person who is leaving the organization. This person's ID is to be...
2
1809
by: thj | last post by:
Hi, Is it possible to start an scheduled task on a server from ASP.NET? Thanks in advance. Tommy.
0
7115
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
6978
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...
1
6858
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
5451
agi2029
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,...
1
4881
isladogs
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...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.