c# - Launching new process from ASP.NET -


i'm having hard time c# / asp.net (.net 4) code works fine in development environment, isn't working on production server.

part of code attempts launch new process run lame.exe (to convert .wav file .mp3):

process convert = new process      {        startinfo =        {         filename = appdomain.currentdomain.basedirectory + "bin\\lame.exe",         arguments =  "--quiet -q 5 -b 16 \"" + filepath + "\" " + directory + "\\" +                                                        tempfile,         useshellexecute = false,         redirectstandardinput = true,         redirectstandardoutput = true        }      };   convert.start();  convert.waitforexit(); 

and works fine on windows 7 development pc. however, on production windows 2008r2 server, doesn't anything: doesn't crash, or throw exceptions, doesn't anything.

i realise caused user permissions, i'm struggling fix issue. having read dozens of articles, of contradict each other, can't figure out do.

all application needs run lame.exe inetpub\site\bin directory , spit out file 1 directory another. i'm sure lame.exe isn't starting: having redirected standardoutput streamreader, don't see being output. , again, no exceptions, or errors, apparently generated.

the application running in it's own app pool, under "applicationpoolidentity". w3 publishing service running under local system, , i've tried ticking "allow service interact desktop".

i've given (temporary) full access rights network service account whole \inetpub\sitedirectory.

does know of ''definitive'' way of getting asp.net under iis7.5 create new process, , credentials and/or rights need use? there easy way see if external process being started, can narrow down apparent lack of permissions biting me?

what john saunders says not creating process inside asp.net thread! recommend having 2nd process running on server follows source directory , converts files in background, see attempting wait result. bad idea halt processing thread until completes -- not belong on production server don't use long-running tasks way, kill scalability.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -