[Mono-aspnet-list] mod_mono sample configuration

Mike Morano mmorano at mikeandwan.us
Wed Jun 20 16:51:15 UTC 2012


On Wed, Jun 20, 2012 at 11:46 AM, Gonzalo Paniagua Javier
<gonzalo.mono at gmail.com> wrote:
> On Wed, Jun 20, 2012 at 8:33 AM, Mike Morano <mmorano at mikeandwan.us> wrote:
>> Hello,
>>
>> I have an MVC3 site that is working fine in XSP4 on Mono 2.11.1
>> (installed with a prefix of /opt/mono-2.11, and run xsp4 after setting
>> my environment via the script listed here:
>> http://www.mono-project.com/Parallel_Mono_Environments).  This site is
>> leveraging the fact that mono now bundles the MVC3 components, and not
>> using mvc3 libraries in the bin folder of the site.
>>
>> However, I have not been successful in getting this site to run under
>> apache/mod_mono.  Trying different things yields different apache
>> errors, though the most promising was seeing the mono error page after
>> adding the following to the apache config (note the order of 4.0 vs.
>> 4.5):
>>
>> MonoPath site "/opt/mono-2.11/lib/mono/4.0:/opt/mono-2.11/lib/mono/4.5"
>>
>>
>> Does anyone have a working configuration you could share?
>
> You are probably missing 'MonoServerPath /opt/mono-2.11/bin/mod-mono-server4'.
>
> -Gonzalo


Thanks for your reply.

I do have that in the config, here are mono related lines as they are
currently set:

MonoDebug site true
MonoAutoApplication disabled
MonoPath site /opt/mono-2.11/lib/mono/4.0:/opt/mono-2.11/lib/mono/4.5
MonoServerPath site /opt/mono-2.11/bin/mod-mono-server4
MonoDocumentRootDir site /srv/www/site
MonoApplications site /:/srv/www/site
MonoUnixSocket site /tmp/mod_mono_server_site

With the above, here is the information on the mono asp.net error page:

System.Exception
Compiler failed to produce the assembly. Output: ''

Description: HTTP 500.Error processing request.

Details: Non-web exception. Exception origin (name of application or
object): System.
Exception stack trace:
at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] in <filename unknown>:0 at
Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] in <filename unknown>:0 at
System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000] in <filename unknown>:0 at
System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath,
System.CodeDom.Compiler.CompilerParameters options) [0x00000] in
<filename unknown>:0 at
System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0
at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Web.Compilation.BuildProviderGroup group,
System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename
unknown>:0 at System.Web.Compilation.BuildManager.BuildInner
(System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename
unknown>:0 at System.Web.Compilation.BuildManager.Build
(System.Web.VirtualPath vp) [0x00000] in <filename unknown>:0 at
System.Web.Compilation.BuildManager.GetCompiledType
(System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0
at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x00000] in <filename unknown>:0 at
System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
context) [0x00000] in <filename unknown>:0


Does anything else look off?

Thanks,
Mike


More information about the Mono-aspnet-list mailing list