[Pkg-mono-devel] mono-xsp: Process has not been started.
Chris Capon
abyss@pathcom.com
Fri, 11 Feb 2005 01:43:52 -0500
There is a solution to this problem but I believe a fix should be
applied to the mono-xsp package (and possibly mono-apache-server). User
"www-data" does not have write permissions to it's home directory.
The original failure is caused by mono-xsp not being able to run the mcs
compiler.
When launching mono-xsp from /etc/init.d, it is run as the default user
set in /etc/default/mono-xsp which is "www-data". This user is not able
to launch the mcs compiler. You can test this by "su www-data" and try
to run mcs.
The executable mcs is in the search path, but it needs to create a
folder called .wapi in the user's home directory for temporary files.
The "www-data" user's home directory is /var/www for which it has no
write permissions.
Either /var/www needs write permissions for user "www-data", or a new
home directory must be assigned.
My solution was to create a folder /var/www/.wapi and set "www-data" as
it's owner. This allowed it to compile .aspx pages and everything
worked again.
Chris.
Chris Capon wrote:
> I am trying to get the xsp server to deliver pages. After installing
> mono-xsp and monodoc-http, the error message below is returned to the
> web browser.
>
> When I try to install my own aspx pages (nice simple ones with only
> HTML) I get the same error.
>
> Here are the mono packages I have installed, all of them at the
> current Debian testing level. All packages have been removed and
> reinstalled again, but the problem remains.
>
> mono-gac
> mono-jay
> mono-mcs
> mono-utils
> monodevelop
> monodoc
> monodoc-base
> monodoc-browser
> monodoc-http
> monodoc-manual
> mono-common
> mono-jit
> libmono0
> mono-assemblies-arch
> mono-assemblies-base
> mono-xsp
>
> This has also been tried under Apache using mono-apache-server but the
> same error occurs with it too.
>
> Is something else supposed to be started ahead of time? What process
> is the message refering to?
>
> Thanks in advance,
> Chris.
>
>
>
> Server error in '/monodoc' application
>
> ------------------------------------------------------------------------
> *Description: *Error processing request.
>
> *Error Message: *HTTP 500.
>
> *Stack Trace: * ||
>
> System.InvalidOperationException: Process has not been started.
> in <0x0003b> System.Diagnostics.Process:get_ExitCode ()
> in <0x00050> (wrapper remoting-invoke-with-check)
> System.Diagnostics.Process:get_ExitCode ()
> in <0x002bd>
> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromFileBatch
> (System.CodeDom.Compiler.CompilerParameters,string[])
> in <0x0044a>
> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDomBatch
> (System.CodeDom.Compiler.CompilerParameters,System.CodeDom.CodeCompileUnit[])
>
> in <0x00050> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDom
> (System.CodeDom.Compiler.CompilerParameters,System.CodeDom.CodeCompileUnit)
>
> in <0x00171> System.Web.Compilation.CachingCompiler:Compile
> (System.Web.Compilation.BaseCompiler)
> in <0x002ea> System.Web.Compilation.BaseCompiler:GetCompiledType ()
> in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
> in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
> in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance
> (string,string,System.Web.HttpContext)
> in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler
> (System.Web.HttpContext,string,string,string)
> in <0x0034e> System.Web.HttpApplication:CreateHttpHandler
> (System.Web.HttpContext,string,string,string)
> in <0x0011f> CreateHandlerState:Execute ()
>
> in <0x00084> StateMachine:ExecuteState
> (System.Web.HttpApplication/IStateHandler,bool&)
>
>
>
> _______________________________________________
> Pkg-mono-devel mailing list
> Pkg-mono-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-mono-devel
>