473,783 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running a console application in Windows Scheduler - .NET Runtime Error EventID: 5000

Hi all

I am fairly new to windows scheduler.

I have an .exe console application that needs to be run 1st of every
month. I created a scheduled task in Windows Schduler and called
the .exe.

The application is supposed to pull some report data and make a
webservice call to sent out this data.

When the user running the task has admin previleges it runs fine. But
otherwise, I always get a .NET Runtime Error EventID: 5000 and just
fails.

Any input on that would be great. Please.

May 1 '07 #1
2 4176
When you create the scheduled Task, the Task Scheduler wizard should prompt
you for a username and password representing the credentials under which you
want this task to be run.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"kplkumar" wrote:
Hi all

I am fairly new to windows scheduler.

I have an .exe console application that needs to be run 1st of every
month. I created a scheduled task in Windows Schduler and called
the .exe.

The application is supposed to pull some report data and make a
webservice call to sent out this data.

When the user running the task has admin previleges it runs fine. But
otherwise, I always get a .NET Runtime Error EventID: 5000 and just
fails.

Any input on that would be great. Please.

May 1 '07 #2
Hi,

You have to run it under an user account with enough permission to do what
you want. Most probably you might be accesing some folders than the user has
no permission to.

What is wrong in using the admin user to run it?

"kplkumar" <kp******@gmail .comwrote in message
news:11******** *************@q 75g2000hsh.goog legroups.com...
Hi all

I am fairly new to windows scheduler.

I have an .exe console application that needs to be run 1st of every
month. I created a scheduled task in Windows Schduler and called
the .exe.

The application is supposed to pull some report data and make a
webservice call to sent out this data.

When the user running the task has admin previleges it runs fine. But
otherwise, I always get a .NET Runtime Error EventID: 5000 and just
fails.

Any input on that would be great. Please.

May 1 '07 #3

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

Similar topics

2
5855
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 reading from a template file and inserting text at bookmark locations (with details pulled from a table in the database). I'm running the app under a regular domain account that isn't an administrator on the server. The read/execute permissions are...
7
3932
by: Lucas | last post by:
Hi, I have an ASP.Net application written with VS.Net 2002 (Net FWK 1.0). This Web Application uses Exception Management Application Block to log Events to Windows Event Log. We registered the Exception Management Application Block using installutil. Our Application uses impersonation and used to work fine on Windows 2000 Server. Now we installed it on a Windows Server 2003 and when an exception is raised, we get an "Access is denied"...
2
1560
by: Mahesh Nimbalkar | last post by:
For a few reasons I can not use windows services in my application to be run as scheduled job So I am using console application which will be executed by windows scheduler. I want this console application to be run as hidden. Any idea how to do this? Thanks, -- Thanks, Mahesh
2
2877
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 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...
4
5242
by: news.citenet.net | last post by:
I keep getting the following error message after my web site running 2 or 3 days I share one folder with about 200 domain names Any one can help? --------------------------------------------------------------------------------
3
9833
by: Nicol | last post by:
Hi, I have created a console application in c#.net. I also scheduled it in the windows scheduler. In the scheduled task i will specify the command line arguments. When I say "Run", I am getting the command window, which I dont want. I need to run my application in silent mode. My system is windows 2003 server. Please help me in this. Thanks
4
8010
by: Mo | last post by:
Hi, I am writing a console application to send a key sequence to an old clunky application on a regular interval using the windows scheduler. I can get it to work if it is a windows form application but not in a console application. Two questions I have: 1) how can I get this code modified to use System.Windows.Forms.Keys 2) I like to pass a parameter to the console app to indicate which key needs to be passed to the application. so:
1
5053
by: kplkumar | last post by:
Hi all I am fairly new to windows scheduler. I have an .exe console application that needs to be run 1st of every month. I created a scheduled task in Windows Schduler and called the .exe.
15
11076
by: eltonchew | last post by:
Hi, We have an inhouse developed VB.NET Windows application which runs successfully only when the user is given a local administrator rights. Without which, it fails to start. There isn't anything reported on the event viewer. Giving the user full access to C:\ drive also doesn't do the trick. Unfortunately, we do not have the code of this application and hence cannot view what the application is trying to access. Note that we have both...
0
1848
by: Pheasant Plucker® | last post by:
Hi there, Not sure if this is the correct ng and I am not a programmer so excuse me but here goes...:-) We have a custom application that has a hook or calls either the Outlook calendar or looks in the Inbox for a specific email and acts upon it if found. This has worked great for over a year but when I updated using the usual
0
9643
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
9480
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
10147
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...
0
9946
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7494
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
5378
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
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
3
2875
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.