Re: ActiveX Permission Denied Error from Sch Task

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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..
> > >
> > >
> > >
>
>
>
.



Relevant Pages

  • Re: Scheduled Tasks - Strange Permissions Issue
    ... I did know about this issue and assigned that user the right security permissions on cmd.exe. ... They appear to run and don't issue any errors in the scheduled tasks log, yet they seem to be having permissions problems. ... However, the application that I'm running via the Scheduled Task has its own log which states, "Access is denied". ... Logon Failure: ...
    (microsoft.public.windows.server.security)
  • Re: Accessing Add Scheduled Task Wizard
    ... there must be some mechanism to launch the "Add Scheduled Task" ... wizard, since from within the Scheduled Tasks folder, you can double click ... it and some code somewhere gets executed that launches the wizard. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ActiveX Permission Denied Error from Sch Task
    ... LogEvent "Finished Creating Lookup Object." ... I have been successful launching the application from the scheduled task ... >>I have a VB app that I am trying to launch by way of scheduled task. ...
    (microsoft.public.vb.com)
  • Re: ActiveX Permission Denied Error from Sch Task
    ... >I have a VB app that I am trying to launch by way of scheduled task. ... > references an ActiveX exe and fails when I try to create an instance of ...
    (microsoft.public.vb.com)
  • Re: ActiveX Permission Denied Error from Sch Task
    ... Try using dcomcnfg.exe to set the permissions on the ActiveX EXE, ... Instead I get Error #70 Permission ... > I have been successful launching the application from the scheduled task ... > using the sysadmin account. ...
    (microsoft.public.vb.com)