Solved

C# Scheduling

Posted on 2003-10-23
6
319 Views
Last Modified: 2008-02-01
hi

I have a c # Windows aplication that I am trying to schedule to run every 2 hours but when I run it fron the Scheduled task it gives the following error inm the Event Log

Event Type:      Error
Event Source:      .NET Runtime
Event Category:      None
Event ID:      0
Date:            10/23/2003
Time:            9:32:34 AM
User:            N/A
Computer:      DSP425
Description:
The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.0.3705.209- Badmail.exe - Common Language Runtime Debugging Services: Application has generated an exception that could not be handled.

Process id=0xa44 (2628), Thread id=0xab8 (2744).

Click OK to terminate the application.
Click CANCEL to debug the application

But when I double click on it , it works with no problems why ???/ Please help
0
Comment
Question by:marounk
6 Comments
 
LVL 10

Expert Comment

by:smegghead
ID: 9607858
is the .net framework installed on your remote computer ??
0
 
LVL 9

Expert Comment

by:_ys_
ID: 9607863
Is the scheduled task set-up to run as a different user?

Does your application expect to be started from within a certain directiory (does it acess any files using relative naming)?
0
 
LVL 1

Author Comment

by:marounk
ID: 9613301
Yes the .NET is installed and , and it is to be run using an admin account.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 9

Expert Comment

by:_ys_
ID: 9613362
From the name of your exe badmail.exe, I'll guess your accessing email of some sort (or maybe not).

Verify permissions to all resources accessed from the exe. Can't suggest anything else without seeing code.
0
 
LVL 15

Accepted Solution

by:
SRigney earned 300 total points
ID: 9616668
Try logging in as the Administrator that you have the task scheduled to run as, and double clicking the exe.

If this doesn't work, and there isn't any issues with it running as you, then you can change the user of the task to you.

Probably _ys_ is correct and the Administrator doesn't have access to some network resource that you do.
0
 
LVL 1

Author Comment

by:marounk
ID: 9633176
I did install .NET sp2 and the problem was solved , pretty weird from Microsoft !
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now