473,770 Members | 6,091 Online
Bytes | Software Development & Data Engineering Community
+ 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 misconfiguratio n 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 3116
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 misconfiguratio n 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
8593
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, might as well move to PHP (for a variety of reasons - not trying to reopen the PHP -vs- CFM thing again :). Anyway, so I'm looking at this system, and there are no "scheduled tasks" (it's win2kas). How do you write a server app that needs to...
5
4775
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 http://taskscheduler.sourceforge.net) But, I want to control 'Scheduled Tasks' by python :) Is there any python module about win32 'Scheduled Tasks'?
3
22958
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 manage scheduled tasks on different servers. So, how can I add scheduled task to local machine or remote servers programmatically? Thanks.
7
10463
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 Scheduled Tasks. However, the other 1% of the time Windows Tasks will return the following error (from the SchedLgU.txt log file) Started 20/03/2006 08:20:01 "ServerInfoService.job" (ServerInfoService.exe)
0
4236
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 (scheduled or manually) without a problem if I am logged in. But when i log off and and set it up as a scheduled task using the Task Scheduler, I receive the following error. Event Type: Error
3
3442
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 multiple Windows 2003 servers. It works great. However, I also need to remotely collect the settings for the scheduled tasks (on those same Windows 2003 servers) and then manipulate those task settings.
1
1634
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 a automation system for all the daily scheduled processes.what is the best approach to check and run the scheduled events / tasks.
0
1356
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 deleted, but I see no way of reassigning the owner of these tasks. And I can't change permissions on the tasks without logging in as that 'owner' ID. Is renaming the ID and resetting the password a viable option here?
2
1822
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
9595
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9432
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10232
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7420
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.