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.
spudsoftwareAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

spudsoftwareAuthor Commented:
Here is a screen shot the original doesn't appear to have posted.
Untitled.jpg
spudsoftwareAuthor Commented:
Any Idea's its a very odd error as it works on other servers just not this one.
spudsoftwareAuthor Commented:
The problem turned out to be a partially corrupt EXE, uploaded the same exe again and tested and it worked very odd to say the least.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.