I suggest you use impersonation to have ASP.NET run under a different user
account that has the necessary network access.
At first, for testing purposes, I'd suggest you have it run under your user
account since you know you have the required access to the folder.
<!-- Web.config file. -->
<identity impersonate="true" userName="Redmond\BillG" password="Melinda"/>
Please note that this will then result in the referenced executable file to
be retrieved from the specified network computer and run on the local web
server.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"accyboy1981" <ac*********@gmail.comwrote in message
news:11**********************@l77g2000hsb.googlegr oups.com...
Hi,
I'm creating a website that is required to run an executable file over
a network. I'm currently using the System.Diagnostics namespace with
code similar to this:
Process p = new Process();
p.StartInfo.FileName = "\\pc-name\\dir\\program-name.exe";
p.Start();
The above code does not work I'm assuming it is the Process doesn't
have to access rights to the PC. I don't know how to assign these
parameter, or if what I'm doing is even possible.
Any help would be much appreciated.
Thanks
Simon