Solved

C# Scheduling

Posted on 2003-10-23
6
322 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Run time Error 4 48
Signal R -send data to client: only if they are allowed to see it ? 1 52
2 questions 10 25
Create a WebAPI using a generic return parameter 9 25
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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