By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,667 Members | 2,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,667 IT Pros & Developers. It's quick & easy.

Visual Basic Scheduler Error

P: n/a
I have an application written in Visual Basic .NET in Visual Studio 2005 that
runs on a server and simply uses the filesystem.copydirectory to backup
folders from my pc to a server. The problem I have is when I run it manually
on the server it works fine, but when it runs from the scheduler it can't
access my pc. I sign on to the server as the user it runs as when its ran
from the scheduler, but it just can't access my pc when ran from the
scheduler, but runs fine when I run it manually. The user that it runs as
has been added to the Admin group on my pc, so I'm not sure what the
scheduler is doing that prevents it from working. Thanks for any ideas or
comments!!!!!!
Aug 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try logging onto your computer with that user account and see what happens.
If that works, then try running your code with those credentials and see
what happens. If that works...

Ask, is the scheduler running the assembly from a UNC. Was that code
permitted to be run by the user account/machine from that location?

My point is, try to replicate the issue by manually replicating the steps
and environment. Perhaps you can then get a better understanding of the
issue.

"Andy S." <An***@discussions.microsoft.comwrote in message
news:B1**********************************@microsof t.com...
>I have an application written in Visual Basic .NET in Visual Studio 2005
that
runs on a server and simply uses the filesystem.copydirectory to backup
folders from my pc to a server. The problem I have is when I run it
manually
on the server it works fine, but when it runs from the scheduler it can't
access my pc. I sign on to the server as the user it runs as when its ran
from the scheduler, but it just can't access my pc when ran from the
scheduler, but runs fine when I run it manually. The user that it runs as
has been added to the Admin group on my pc, so I'm not sure what the
scheduler is doing that prevents it from working. Thanks for any ideas or
comments!!!!!!

Aug 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.