[Mono-aspnet-list] mod_mono sample configuration
Gonzalo Paniagua Javier
gonzalo.mono at gmail.com
Wed Jun 20 19:32:43 UTC 2012
On Wed, Jun 20, 2012 at 12:51 PM, Mike Morano <mmorano at mikeandwan.us> wrote:
> 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
[...]
>
> Does anything else look off?
I never set MonoPath when configuring Apache. If it still fails, try
disabling batch compilation of the pages, which will tell you which
file is causing the compilation problem.
-Gonzalo
More information about the Mono-aspnet-list
mailing list