I have a VB.NET app that crashes when run from the Windows scheduled tasks, but runs fine when the run-as user is logged on. The app also runs fine from the scheduled jobs if the run as user is disconnected. The O/S is Windows Server 2003, the app is created with VB.NET 2003. The .NET framework is up todate with Windows releases. The APP opens connections to an SQL Server 2003 database and an ODBC sql connection to an iSeries database.
Unfortunatley the event viewer application message message is not very specific, please see below.
The scheduled task ending status is 0xc000013a, which implies "access denied". Apparently, the problem is due to not having permissions to access a needed object without the user being logged on.
But when I log on to attempt a debug, the app runs fine.
Is there a way to get a more specific message logged in the event view so that I have a clue as what the problem is?
We have tried running the task as an admin user, with the same results.
We added the specific user to Command.exe, still failed.
We added BATCH to the Command.exe object, still failed.
Thanks for your help
Weems
- - - Event View message
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. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: .NET Runtime version 1.1.4322.2379- AutoImagePOI.exe - Common Language Runtime Debugging Services: Application has generated an exception that could not be handled.
Process id=0x158c (5516), Thread id=0x924 (2340).
Click OK to terminate the application.
Click CANCEL to debug the application..
MyBox .net: (version 1.1.4322.573)