Re: ActiveX Permission Denied Error from Sch Task
- From: "CSundquist" <CSundquist@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 May 2005 07:02:02 -0700
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.
"Tony Proctor" wrote:
> 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
>
> "CSundquist" <CSundquist@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:FD35C025-4137-45AE-AE75-6ED0B8944589@xxxxxxxxxxxxxxxx
> > 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.
> >
> > "Ken Halter" wrote:
> >
> > > "CSundquist" <CSundquist@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:11B467B8-E628-4DE8-B3DA-1107B954FBA6@xxxxxxxxxxxxxxxx
> > > >I have a VB app that I am trying to launch by way of scheduled task.
> The
> > > >app
> > > > references an ActiveX exe and fails when I try to create an instance
> of
> > > > this
> > > > object. I receive Error #70 Permission Denied. I only receive the
> error
> > > > when I try to launch the app by scheduled task.
> > > >
> > > > I can log on to the machine with the account I have setup to run the
> > > > scheduled task as and manually execute the application without error.
> > > > Only
> > > > when I try to launch the application by way of scheduled task do I
> recieve
> > > > the permission denied error.
> > > >
> > > > Does anyone have any ideas?
> > >
> > > The only thing I can suggest is that you add error trapping to help
> locate
> > > 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"
> > >
> > > --
> > > 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..
> > >
> > >
> > >
>
>
>
.
- References:
- ActiveX Permission Denied Error from Sch Task
- From: CSundquist
- Re: ActiveX Permission Denied Error from Sch Task
- From: Ken Halter
- Re: ActiveX Permission Denied Error from Sch Task
- From: CSundquist
- Re: ActiveX Permission Denied Error from Sch Task
- From: Tony Proctor
- ActiveX Permission Denied Error from Sch Task
- Prev by Date: VB6 UDT
- Next by Date: Returning object pointers
- Previous by thread: Re: ActiveX Permission Denied Error from Sch Task
- Next by thread: error in exe ...but in the vbp no !!!!!!!!!!!!!!!
- Index(es):
Relevant Pages
|