Solved

C# Scheduling

Posted on 2003-10-23
6
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

617 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