Re: Calling a batch file from a web service

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



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
    ... 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: Starting a process from within a web service
    ... The command interpreter in Windows is usually CMD.EXE. ... So you need to start CMD.EXE an pass the batch file as an argument. ... Running in an web service environment your process will be started either as the currently authenticated web service user or as anonymous IIS user, ... So your user needs to have the appropriate permissions on your web server to start the task. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Calling a batch file from a web service
    ... Right now this is all on my development machine and I'm running it through ... 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)