Click to See Complete Forum and Search --> : Process Class issue accross network HELP!


tonyma
06-02-2004, 12:43 PM
I am running Flash generator via process from a web service that calls a flash template from a networked machine(RIDDLER). The process is not inheriting the impersonated user from the ASPNET web.config file and throws off an error not allowing me to access files accross servers.

Code as follow:

Dim StartInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo("C:\Program Files\Macromedia\Generator 2\generate.exe")
With StartInfo
.Arguments = "-swf c:\intro7.swf \\riddler\inetpub\intro6.swt"
.CreateNoWindow = true
.UseShellExecute = false
.RedirectStandardError = true
End With


Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
myProcess.StartInfo = StartInfo
myProcess.Start()

GuardianAngel
06-02-2004, 03:31 PM
shouldn't that be

system.diagnostics.process.start(myprocess)

???

tonyma
06-02-2004, 03:59 PM
it's equivalent to that last part i believe:

Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
myProcess.StartInfo = StartInfo
myProcess.Start()

- equals-

System.Diagnostics.Process.Start(StartInfo)

Phil Weber
06-02-2004, 04:20 PM
See if this helps: http://msdn.microsoft.com/library/en-us/vsent7/html/vxconaspnetdelegation.asp

GuardianAngel
06-02-2004, 04:28 PM
Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process()
myProcess.StartInfo = StartInfo
myProcess.Start()


' so myprocess is system.diagnostic.process
you are saying system.diagnostic.process.start(without a target app)

but you are not giving it a target to run ... you are going around in a circle... at least how i read the code .. i am a relative noob so i may be wrong .
it cannot run itself, i dont think, once again i may be wrong.

tonyma
06-02-2004, 05:15 PM
the target is defined by: myProcess.StartInfo = StartInfo
because i need to pass in parameters and get output back.

StartInfo defines the call to generator.exe

the process call works fine .. it's just accessing a remote file that is a problem


Phil thanks for ur article .. it seems to lead me in the right direction and i'll let u know how things go

tonyma
06-03-2004, 12:25 PM
PHIL IS A SAVIOR!!!! MUCH THANKS .. made changes to machine.config and works like a charm