Re: Calling a batch file from a web service



Right now this is all on my development machine and I'm running it through
the Visual Studio Debugger. Wouldn't that have all necessary permissions
since I'm an administrator on my development machine?

Thanks!
Joel Brimm.

"Alvin Bruney [MVP - ASP.NET]" wrote:

> You need to determine if your webservice has permissions to fire an
> executable. By default, it doesn't. Add these permissions first. You will
> also need permissions for the process executing the exe to read or write
> from the drive. So there are two sets of permissions issues you need to deal
> with first.
>
> --
> Regards,
> Alvin Bruney - ASP.NET MVP
>
> [Shameless Author Plug]
> The Microsoft Office Web Components Black Book with .NET
> Now available @ www.lulu.com/owc
> "JoelBrimm" <JoelBrimm@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:A5B14461-D527-42D9-A73A-428BD16C2705@xxxxxxxxxxxxxxxx
> >I have a batch file that executes a command line utility to do a secure
> >file
> > copy from our server to a 3rd party server. The batch file works fine,
> > but
> > when I call it from the web service the log file shows that it hangs up on
> > the execution of the utility ( an exe ).
> >
> > Batch files without an exe work fine.
> >
> > I also tried running the exe from the web service ( rc =
> > shell(application,hide,true) ) but it didn't work either.
> >
> > Is it possible to run an application from a web service?
>
>
>
.



Relevant Pages

  • Re: Calling a batch file from a web service
    ... Add these permissions first. ... also need permissions for the process executing the exe to read or write ... >I have a batch file that executes a command line utility to do a secure ... > when I call it from the web service the log file shows that it hangs up on ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Calling a batch file from a web service
    ... expecting a response at the command line. ... Wouldn't that have all necessary permissions ... >>>I have a batch file that executes a command line utility to do a secure ... >>> when I call it from the web service the log file shows that it hangs up on ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: System.Diagnostics.Process not working !! please help
    ... You must be having permissions problem. ... batch file is and goto the "security" tab, add the ASPNET user in it and ... >> missing using statements. ... >>> catch (Exception err) ...
    (microsoft.public.dotnet.languages.csharp)
  • .NET Deployment: Minimum Customer Effort
    ... J# Browser Controls. ... Configuration tool and giving the required permission level based on ... I've started to look at writing a batch file that uses Caspol.exe to ... agree to the permissions demanded by our code? ...
    (microsoft.public.dotnet.security)
  • Re: Cannot Execute Batch File
    ... I have given full permissions for the shortcut. ... The error says that I do not have permissions to execute this file. ... We have newly installed a Terminal Server. ... with a Batch file, that is shared on a different Server. ...
    (microsoft.public.windows.terminal_services)

Loading