mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
4/8/2008 12:12:52 PM
Gravatar
Total Posts 92

mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

Two of my clients want to run a portal for their companies and asked me to set it up.   I really want to use mojoportal, but I STILL can't get it working on the linux/mono/mysql platform.   Here is a step by step procedure of what I have done so hopefully someone could point out my mistakes so I can get them online.

1. Run "svn checkout https://forgesvn1.novell.com/svn/mojoportal/trunk" to download current subversion mojoportal version. (Revision 3617)

2. Opened the solution "mojoportal-complete.sln" with Visual Studio 2008 Professional

3. Changed the solution to 'Release' from 'Debug'

4. In project mojoPortal.Business dropped the mojoPortal.Data.MSSQL reference and added mojoPortal.Data.MySql reference

5. In project PollFeature.Business dropped the PollFeature.Data.MSSQL reference and added PollFeature.Data.MySql reference

6. In project SiteOffice.Business dropped the SiteOffice.Data.MSSQL reference and added SiteOffice.Data.MySql reference

7. In project SurveyFeature.Business dropped the SurveyFeature.Data.MSSQL reference and added SurveyFeature.Data.MySql reference

8. In project WebStore.Business dropped the WebStore.Data.MSSQL reference and added WebStore.Data.MySql reference

9. In properties of project mojoPortal.Web, on the Build tab, added "MONO USESETTINGSMAP" to Conditional compilation symbols

10. Rebuild solution

11. Used unleash it to create a deployment directory. Added *.html,*.asmx,*.ashx,*.xml,*.xsl,*.master,*.skin,*.xsd,*.browser,*.theme,*.png,*.ico to the defaults.

12. Upload contents of Deployment Web directory to my hosting server.

13. Latest mono compiled and installed from svn. (revision 99890)

14. Virtual configuration file is as follows.
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName www.mydomain.com
DocumentRoot "/var/www/virtual/mojoportal"
ErrorLog logs/www.mydomain.com.error.log
CustomLog logs/www.mydomain.com.access.log combined
HostnameLookups Off
UseCanonicalName On
MonoAutoApplication enabled
MonoDebug enabled
MonoApplications mojoportal "www.mydomain.com:/:/var/www/virtual/mojoportal"
MonoDocumentRootDir mojoportal "/var/www/virtual/mojoportal"
MonoServerPath mojoportal "/usr/bin/mod-mono-server2"
MonoMaxMemory mojoportal 200000000
MonoMaxCPUTime mojoportal 3600
MonoApplications mono "www.mydomain.com/mono:/mono:/var/www/virtual/mojoportal/mono"
MonoDocumentRootDir mono "/var/www/virtual/mojoportal/mono"
MonoServerPath mono "/usr/bin/mod-mono-server2"
<FilesMatch "\.(gif|jp?g|png|css|ico|xsl|wmv|zip)$">
SetHandler none
</FilesMatch>
Alias /mono "/var/www/virtual/mojoportal/mono"
<Location /mono>
SetHandler mono-ctrl
MonoSetServerAlias mono
Order deny,allow
Deny from all
AuthType Basic
AuthUserFile /var/www/.htpasswd
AuthGroupFile /var/www/.htgroup
AuthName "mojoportal Mono Control Panel"
require group admin
Satisfy Any
</Location>
<Location />
MonoSetServerAlias mojoportal
SetHandler mono
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
Allow from all
</Location>
</VirtualHost>

15. Delete Microsoft.Web.Preview.dll and System.Web.Extensions.dll from bin

16. Delete settings.map.config from the root

17. Copy Web.mono.config to Web.config

18. Change <customErrors mode="Off" defaultRedirect="Error.htm" /> in Web.config

19. killall mono;service httpd restart

At this point the installation creates the tables without any errors, but the first time you try to go to the site you get this error:


he parent type 'mojoPortal.Web.WebPartUI.WebPartModule' does not derive from System.Web.UI.UserControl

Description: HTTP 500. Error processing request.

Stack Trace:

System.Web.Compilation.ParseException: The parent type 'mojoPortal.Web.WebPartUI.WebPartModule' does not derive from System.Web.UI.UserControl
at System.Web.UI.BaseParser.ThrowParseException (System.String message, System.Object[] parms) [0x00000]
at System.Web.UI.TemplateParser.SetBaseType (System.String type) [0x00000]
at System.Web.UI.TemplateParser.ProcessMainAttributes (System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateControlParser.ProcessMainAttributes (System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.UserControlParser.ProcessMainAttributes (System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000]
at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00000]
at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00000]
at System.Web.Compilation.AspParser.Parse () [0x00000]
at System.Web.Compilation.AspGenerator.Parse (System.String file, Boolean doInitParser) [0x00000]
at System.Web.Compilation.AspGenerator.Parse (System.String file) [0x00000]
at System.Web.Compilation.AspGenerator.Parse () [0x00000]
at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].Parse () [0x00000]
at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].get_CodeCompilerType () [0x00000]
at System.Web.Compilation.BuildManager.GetCodeDomProviderType (System.Web.Compilation.BuildProvider provider) [0x00000]
at System.Web.Compilation.BuildManager+BuildItem..ctor (System.Web.Compilation.BuildProvider provider) [0x00000]
at System.Web.Compilation.BuildManager.LoadBuildProviders (System.String virtualPath, System.String virtualDir, System.Collections.Generic.Dictionary`2 vpCache, System.Web.Compilation.BuildKind& kind, System.String& assemblyBaseName) [0x00000]
at System.Web.Compilation.BuildManager.BuildAssembly (System.String virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x00000]
at System.Web.UI.TemplateControl.GetTypeFromControlPath (System.String virtualPath) [0x00000]
at System.Web.UI.TemplateControl.LoadControl (System.String virtualPath) [0x00000]
at mojoPortal.Web.CachedSiteModuleControl.CreateChildControls () [0x00000]
at System.Web.UI.Control.EnsureChildControls () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Page.ProcessLoadComplete () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

 

Any ideas?

4/8/2008 1:35:15 PM
Gravatar
Total Posts 92

Re: mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

Oh yeah, has the mono CSS issues been worked out yet???   Dean, I heard you were helping the mono guys a bit...  Any news?

4/9/2008 12:57:17 PM
Gravatar
Total Posts 18439

Re: mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

Hi Richard,

The work on CSS adapters is just now settling into svn but some other issues are going on. Its being actively worked on so I figured I'd at least respond to let you know that.

Mono 1.9 works with mojoPortal 2.2.4.6b but not with the latest mojoPortal release.

Mono svn is where I see hope on the horizon since the CSS Adapter stuff is landing. Its not working for me at this very moment but as I said I know they are working on it and I expect it will be better soon.

I'll post again and let you know once its working for me using mojoPortal and Mono both from svn.

Best,

Joe

4/10/2008 6:55:59 AM
Gravatar
Total Posts 92

Re: mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

So instead of using the svn source should I be downloading your precompiled mojoportal-2-2-4-6-b-pgsqlreleasefiles-for-mono.zip and adding in mojoportal-2-2-5-2-mysqldatalayer.zip to work with my mono 1.9 and mysql?

 

4/10/2008 7:04:28 AM
Gravatar
Total Posts 18439

Re: mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

If you build Mono from svn r100264 or newer and use mojoPortal trunk it can work and the CSS Adapaters are working. Kudos to Dean! It looks great!

The only problem at the moment is I don't have my latest updates merged into trunk because the Novell Forge svn server is acting up.

However, if you get mojoPortal trunk and using MonoDevelop, remove the compiler directive EXCLUDEVPP it should work.

It "may" also work compiling from Windows with vs, but in this case add the compiler directive MONO to the web project.

The 2.2.4.6b version of mojoPortal is needed to work with current release versions of Mono but current release versions do not  have support for CSS Adapters.

Hope it helps,

Joe

4/10/2008 9:17:33 AM
Gravatar
Total Posts 18439

Re: mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

I was just now able to get my mojoportal svn sandbox working on Mono 1.9 (albeit without the css adpaters since that wasn't in the release). So I will try to package up a new mono package in the next few days that will work with the current Mono release.

Still, you need Mono svn to have it look good and render the menu correctly.

Still having trouble with Novell forge so not sure how long till I can merge my sandbox changes to mojoportal trunk.

Best,

Joe

4/10/2008 9:21:41 AM
Gravatar
Total Posts 92

Re: mojoPortal 3617, Mono 99890, Linux RHEL4, Mysql...

Thats great news!   Good work Dean! 

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