mp works with xsp2 but not with mod_mono

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
1/28/2011 6:54:21 AM
Gravatar
Total Posts 3

mp works with xsp2 but not with mod_mono

Hi folks,

I got the following problem:

I'm running Ubuntu 10.04 with a MySql-database, and the actual mono release of mojoportal.

When I start the xsp2 via command line all works fine. If I run mp by Apache::mod_mono it told me that the system doesn't have the permissions to access the folder. So I "chown"ed to www-data. This killed the first error.

The next problem is that the system seems not to read the user.properties file, because it tells me

The system cannot connect to the MySQL database. Please check your connection string.

MySql.Data.MySqlClient.MySqlException: Access denied for user 'mojouser'@'localhost' (using password: YES) at 

and the is not what i set in user.properties.

my apache config looks like this:

 

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerAlias lions_hl

        HostnameLookups Off
        UseCanonicalName On
        MonoServerPath lions_hl "/usr/bin/mod-mono-server2"
        MonoSetEnv lions_hl MONO_IOMAP=all
        MonoApplications lions_hl "/:/var/www"

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny

                MonoSetServerAlias lions_hl
                SetHandler mono
        </Directory>

....
<VirtualHost/>

 

I'm grateful for every hint.

Florian

 

 

 

 

1/28/2011 7:03:13 AM
Gravatar
Total Posts 18439

Re: mp works with xsp2 but not with mod_mono

There are always bugs of one kind or another in Mono, you did not mention your Mono version but I think this bug has happened before in Mono and been fixed so it may be a regression.

Only thing I would suggest is you could try setting the connection string directly in Web.config instead of user.config and see if that solves it.

Hope it helps,

Joe

1/28/2011 7:23:11 AM
Gravatar
Total Posts 3

Re: mp works with xsp2 but not with mod_mono

Awesome,

changing the connstring in Web.Config solved the problem. "Che" for your fast answere XD.

I'm just wondering my it works if i'm runnin xsp2, this is pointing that mono works. so i guess it must be related by binding that via Apache. 'Cause if i'm not mistaken, Apache starts that xsp2 via mod-mono-server2.

for minor mentioning I installed

mojoportal-2-3-6-1-pgsql-mono-deploymentfiles.zip from codeplex and replaced it with the mysqlfiles

and mono itself from repository of:

deb http://badgerports.org lucid main

aptitude search mono tells me which package are installed, but not the versions...

need to google how to assertain that. if i find out howto i'm gonna post it.

 

Florian

1/28/2011 7:31:34 AM
Gravatar
Total Posts 3

Re: mp works with xsp2 but not with mod_mono

installierte versionen:

mono-xsp2  2.6.5-3~dhx1
mono-apache-server2 2.6.5-3~dhx1
libmono-system-web2.0-cil 2.6.7-3ubuntu1~dhx1
libmono-corlib2.0-cil 2.6.7-3ubuntu1~dhx1

You must sign in to post in the forums. This thread is closed to new posts.