Link to home
Start Free TrialLog in
Avatar of spudsoftware
spudsoftware

asked on

System.UnauthorizedAccessException on Scheduled Task

I have a program written in vb .net (05) It is very simple and work on every machine except this one server (other machine have the same hw, OS updates etc.)
Basically the app launchs with a form open for about 60 seconds then it closes the window and saves the disk space to an SQL DB. That part works flawless, the problem i am running into is i am getting a System.UnautherorizedAccessException when it goes to run it as a scheduled task. I have changed the user it runs as and that hasn't fixed it and i can tell it tries to run hence the event log entry. It is funny as the app works on other server where no-one is logged in at all but this one it will not. Any Ideas what could be causing it to lock up? It appears to be instantanious as i can tell the task to run and it starts then ends right away so it doesn't like the form popping up or something.
Avatar of spudsoftware
spudsoftware

ASKER

Here is a screen shot the original doesn't appear to have posted.
Untitled.jpg
Any Idea's its a very odd error as it works on other servers just not this one.
ASKER CERTIFIED SOLUTION
Avatar of spudsoftware
spudsoftware

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial