>I have a VB app that I am trying to launch by way of scheduled task. The
>app
[quoted text clipped - 10 lines]
>
> Does anyone have any ideas?

Signature
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Sign up now to help keep VB support alive - http://classicvb.org/petition
Please keep all discussions in the groups..
My code reads like this:
Dim objArchive As Archive.Lookup
On Error Goto ErrorHandler
LogEvent "Creating Lookup Object..."
Set objArchive = New Archive.Lookup
LogEvent "Finished Creating Lookup Object."
LogEvent is a procedure I added to log what was going on...My app never gets
to "Finished Creating Lookup Object." Instead I get Error #70 Permission
denied.
I have been successful launching the application from the scheduled task
using the sysadmin account. (Which is not desirable...). I have tried
adding the account I am using for the scheduled task to the local admin group
on the server and running it that way, with no success.
The exe, the ActiveX exe I am referencing, and the scheduled task are all on
the same server.
> >I have a VB app that I am trying to launch by way of scheduled task. The
> >app
[quoted text clipped - 14 lines]
> the line of code that's raising the error. When you find that, post back
> with as many details as you can share so we can help find a "fix"
Tony Proctor - 22 May 2005 11:17 GMT
Try using dcomcnfg.exe to set the permissions on the ActiveX EXE, e.g. make
it run under a specific account (different to that of the scheduled task)
Tony Proctor
> My code reads like this:
>
[quoted text clipped - 36 lines]
> > the line of code that's raising the error. When you find that, post back
> > with as many details as you can share so we can help find a "fix"
CSundquist - 24 May 2005 15:02 GMT
Setting permissions in DCom worked. The account I was using to launch the
scheduled task had permissions to launch the ActiveX exe but did not have
permissions to access it (not sure why it was setup this way...).
Thanks.
> Try using dcomcnfg.exe to set the permissions on the ActiveX EXE, e.g. make
> it run under a specific account (different to that of the scheduled task)
[quoted text clipped - 52 lines]
> http://classicvb.org/petition
> > > Please keep all discussions in the groups..