[Mono-list] System.InvalidOperationException: Process has notbeen started.

Gonzalo Paniagua Javier gonzalo@ximian.com
Fri, 07 May 2004 19:36:20 +0200


El jue, 06-05-2004 a las 12:10, Adam W escribió:
> Gonzalo, 
> 
> > El jue, 06-05-2004 a las 09:26, Adam W escribió:
> > > Hi All,
> > > 
> > > Trying to get mod_mono running under apache2 on mandrake 
> > 10.0. Got it 
> > > compiled and all, but keep getting this error message in 
> > the browser:
> > > 
> > > Description: Error processing request. 
> > > Error Message: HTTP 500. 
> > > 
> > > Stack Trace: System.InvalidOperationException: Process has 
> > not been started.
> > > in <0x00065> System.Diagnostics.Process:get_ExitCode () in 
> > <0x00050> 
> > > (wrapper remoting-invoke-with-check) 
> > > System.Diagnostics.Process:get_ExitCode
> > > () in <0x00231>
> > 
> > Somehow, this happens when mcs cannot be found in the PATH.
> 
> I wish it were the case:
> 
> ...
> [adamw@eugene adamw]$ which mcs
> /usr/local/bin/mcs
> ...

If mod_mono is installed in /usr/local or you used the configuration
directives to tell mod_mono where to find mono and mod-mono-server.exe,
everything should be ok. If this is not the case, take a look at the
manual page for mod_mono and provide the full path to mono and
mod-mono-server.exe.

In case you're still having problems, try creating a small program uses
System.Diagnostics.Process to run mcs and compile something.

-Gonzalo