C# .NET - Scheduled task stopped unexpectedly at midnight

Asked By wilson wong on 08-Feb-10 09:02 PM

Hi all,

I have a C# .NET 3.5 console program scheduled to run every minute in Windows XP using Task Scheduler.  However, the task sometimes stopped unexpectedly at 00:00 and resumed to run 24 hours later.

Please help.  Thanks.

Regards,

Wilson




Asked By wilson wong on 09-Feb-10 10:11 PM
Hi,

I found the following application error event log about the run user of the scheduled job:

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1511
Date:  8/2/2010
Time:  23:57:03
User:  INTHKEX\EBIS
Computer: WSMM0005
Description:
Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

***************************
Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1502
Date:  8/2/2010
Time:  23:57:03
User:  INTHKEX\EBIS
Computer: WSMM0005
Description:
Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt local profile. If this problem persists, contact your network administrator.

 DETAIL - The process cannot access the file because it is being used by another process.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Please let me know if it is related to the problem or not.  Thanks.

Regards,
Wilson