[Mono-list] Cannot run ASP.NET 4.5 / MVC4 application under CentOS6

Dwobin furism at outlook.com
Mon Mar 25 09:59:53 UTC 2013


Hi,

I've been stuck on this problem for two days now and I fear I've reached the
limits of my knowledge.

I'm trying to run an ASP.NET 4.5 (MVC4 with Razor) application under CentOS
6, using Mono 3.0 and Apache2. I have compiled Mono and it works fine. I've
added that line in etc/httpd/httpd.conf:

Include conf.d/*.conf

Then in conf.d I created mvcgui.conf, and this is the configuration:

<VirtualHost _default_:80>
        MonoServerPath mvcgui "/opt/mono/bin/mod-mono-server4"
        MonoDebug mvcgui true
        MonoSetEnv ctgui MONO_IOMAP=all

        MonoApplications "/:/home/mvcgui/wwwroot"
        <Location "/">
                Allow from all
                Order allow,deny
                MonoSetServerAlias mvcgui
                SetHandler mono
        </Location>
</VirtualHost>

However, this configuration generates two errors. When I start the service I
see this in the apache logs:

[Mon Mar 25 10:55:49 2013] [notice] Apache/2.2.15 (Unix) DAV/2 mod_mono/2.10
configured -- resuming normal operations
Listening on: /tmp/mod_mono_server_global
Root directory: /
Listening on: /tmp/mod_mono_server_global
Root directory: /
Error: Address already in use
Error: Directory "/home/mvcgui/wwwroot/" not found.
[root at localhost httpd]#

I have no idea why the server doesn't see the wwwroot. The directory *is*
there, and I added 'apache' user in the 'mvcgui' group. Then if I try to
reach that server anyway, this is what appears in the logs:

[Mon Mar 25 10:57:49 2013] [error] Not running mod-mono-server.exe because
no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
specified.
[Mon Mar 25 10:57:51 2013] [error] Not running mod-mono-server.exe because
no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
specified.
[Mon Mar 25 10:57:53 2013] [error] Not running mod-mono-server.exe because
no MonoApplications, MonoApplicationsConfigFile or MonoApplicationConfigDir
specified.
[Mon Mar 25 10:57:55 2013] [error] Failed to connect to mod-mono-server
after several attempts to spawn the process.

Which is strange to me as, as you can see in the VHOST configuration, I do
specify a MonoApplications directive. To be sure the VHOST config is read
I've changed the MonoApplications path and I get the first error message on
the modified path - meaning it's being read I think.

I'm completely lost as to what to do next! Any help would be appreciated.



--
View this message in context: http://mono.1490590.n4.nabble.com/Cannot-run-ASP-NET-4-5-MVC4-application-under-CentOS6-tp4659143.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list