Ubuntu Linux cannot open the Setup/Default page

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

This forum is for any topic related to running mojoPortal on GNU/Linux or Mac using Mono.

Anyone who can help with testing mojoPortal 2.x on Linux with Mono to find the bugs and report to the Mono team, this will help a lot. See the instructions for building with MonoDevelop.

This thread is closed to new posts. You must sign in to post in the forums.
11/15/2011 9:51:55 AM
Gravatar
Total Posts 15

Ubuntu Linux cannot open the Setup/Default page

Running Mojoportal under Ubuntu 11.04 is proving a real challenge. Working with the with the mojoportal 2-3-7-0 download files for NET3.5  and a MySQL database, I have finally managed to install Monodevelop, Apache2, xsp2, xsp4 and mono-server, and after inserting many configuration settings, simple testpage .aspx files are working.

However when trying to access the /Setup/Default.aspx page in Apache an error is shown 

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache/2.2.17 (Ubuntu) Server at 127.0.0.2 Port 80

If I manually start XSP2 or XSP4  and declare the root as /var/www/essexbp.com [which is the name I have used throughout all files and settings for the webserver] I get this error

xsp4 --root /var/www/essexbp.com
Exception during TraceManager initialization:
System.Xml.XmlException: a name did not start with a legal character 45 (-)  Line 67, position 2.

Followed by many lines of errors with mono-server named and xml named over and over

If I use /var/www/essexbp.com/Setup as the root I get  no errors but then using port 8080 to open /Setup/Default.aspx I get this error

 

Server Error in '/' Application


Parser Error

Description: Error parsing a resource required to service this request. Review your source file and modify it to fix this error.

Parser Error Message: Cannot find type mojoPortal.Web.UI.Pages.SetupHome

Source Error:

Line 1: <%@ Page Language="C#" AutoEventWireup="false" EnableSessionState="False" CodeBehind="Default.aspx.cs" Inherits="mojoPortal.Web.UI.Pages.SetupHome" %>
Line 2: 
Line 3: 


 

Source File: /var/www/essexbp.com/Setup/Default.aspx  Lines: 1, 1


Version information: Mono Runtime Version: 2.10.5 (Debian 2.10.5-1~dhx1~lucid1); ASP.NET Version: 4.0.30319.1

Does this identify any cause of the problem?

Running Mojoportal under Ubuntu is certainly not easy, although there are help pages on the internet where people claim to have succeeded, but none of their instructions have yet worked for me. Or is it simply that it is not possible to use Mojoportal under Ubuntu?


Regards
Tony Morton

 


 

11/15/2011 10:03:10 AM
Gravatar
Total Posts 18444

Re: Ubuntu Linux cannot open the Setup/Default page

I have not packaged releases for Mono for the last few releases of mojoPortal because I have not had time for testing on Mono. There are almost always bugs with Mono and running complex ASP.NET apps, I would not recommend it for any important production site.

I recommend try using version 2.3.6.6 of mojoPortal, use one of the packages labeled for mono

It is compiled on Linux but using .NET version 3.5 not 4, so xsp2 not xsp4

The easiest package to try will be the one for SQLite since it requires no database server software, or you can try it with MySql but you have to also download the mysql data layer and replace the data dlls and copy the /Setup folder into the main package.

Hope that helps,

Joe

 

11/18/2011 11:48:44 AM
Gravatar
Total Posts 15

Re: Ubuntu Linux cannot open the Setup/Default page

Many thanks for that tip Joe, I wish I could report success, but I am afraid that I am getting the same errors. I don't really know enough about working with apache, virtual hosts and content management systems to be able to tell if I am doing things correctly or making mistakes. I had hoped that a step by step approach would eventually work but it hasn't and I cannot tell what I am doing wrong. It's all way over my head, so I had better stop before I spend even more time on fruitless trial and error.

Many thanks

Tony Morton 

11/20/2011 6:59:10 AM
Gravatar
Total Posts 2

Re: Ubuntu Linux cannot open the Setup/Default page

I am also running mojoPortal under Ubuntu 11.10 AMD64, MySql DB with Mono Runtime Version: 2.10.5 (Debian 2.10.5-1); ASP.NET Version: 2.0.50727.1433 on a Gateway LT3103 netbook.

I loaded all files and folders into my site folder /var/www/psellc did chown -R www-data:www-data which is the default user and group for Apache2 under Ubuntu. I use the Apache mod-mono the parse ASP.NET pages and not XSP2 or XSP4

http://library.linode.com/frameworks/mod-mono/debian-5-lenny

I have gotten mojoPortal 2.3.3.0 to successfully installed and opened the homepage. The issues is that none of the skins work. I am not a programmer of any kind so it is very difficult for me to follow the logic of "<%@ Page language="c#" Codebehind="Default.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master" StylesheetTheme="" AutoEventWireup="false" Inherits="mojoPortal.Web.UI.CmsPage" %>"

------------------------------------------------------

this is from my Apache error.log file " Apache/2.2.20 (Ubuntu) mod_mono/2.10 PHP/5.3.6-13ubuntu3.2 with Suhosin-Patch configured -- resuming normal operations

Listening on: /tmp/mod_mono_server_global"

------------------------------------------------------------

I see the file ~/App_MasterPages/layout.Master but I dont understand where this class or method is coming from mojoPortal.Web.UI.CmsPage. it seem the whole site inherits it's logic from this Web.UI.Cms, and I cant find it anywhere under my webroot.

It would be very helpful if there is a logic path showing how the site work from the Default.aspx

Cecil

 

11/20/2011 8:17:32 AM
Gravatar
Total Posts 18444

Re: Ubuntu Linux cannot open the Setup/Default page

The source code is compiled into dlls in the bin folder so you won't find it on disk using the pre-compiled release packages of mojoPortal.

Unfortunately there are often bugs in Mono, it has never become stable enough for me to recommend it for any production web site and lately I have not been testing it at all. It is always hit or miss, often it work but there are some bugs but new releases of Mono often break things, some bugs get fixed, some new ones appear, some regressions occur. It has been that way since 2004, every now and then it works reasonably well but with a few minor bugs but often there are major bugs. Sometimes it doesn't work at all, sometimes it works under xsp2 but not under mod_mono.

I haven't given up on Mono completely though, at some point I plan to start testing again but I'm not setup to do it at the moment. They used to release VMWare images of Mono on openSuse and that made it easier for me to setup a testing environment but since Mono is no longer under Novell they no longer make a VM available so it is more work to setup a testing environment.

Sorry that I don't have better news for you.

Best,

Joe

11/20/2011 8:38:12 AM
Gravatar
Total Posts 2

Re: Ubuntu Linux cannot open the Setup/Default page

Thanks Joe I really just read your post on Mono in another thread and I guess I have one or two choices at this point.

1. Actually invest the time to learn what functions the mono classes support and really try to code based on a specific mono version checking out the code on linux with svn and building with MonoDevelop.

2. MojoPortal in a windows environ.

3. Drupal PHP Linux.

It's a shame for mono and linux to lose to MS 

 

11/20/2011 8:53:08 AM
Gravatar
Total Posts 18444

Re: Ubuntu Linux cannot open the Setup/Default page

It's a shame for mono and linux to lose to MS 

I agree except it never really got all the way there, its always been almost there as far as ASP.NET on Mono/Linux. But of course ASP.NET keeps evolving too and is a moving target for the Mono team to try and keep up with it. Mono still has many great uses, its just that it never quite got all the way there as far as becoming a stable reliable environment for ASP.NET. In my opinion the problem is not enough eating your own dogfood. The Mono site has never run on ASP.NET and when Mono was under Novell none of their sites used it, they always used wikiemedia or other PHP things. If they used it for large important sites that matter to them then they would find the bugs and it would have become stable but instead they just throw it out there for others to use and hope they get good bug reports with test cases.

Best,

Joe

11/20/2011 10:40:30 AM
Gravatar
Total Posts 15

Re: Ubuntu Linux cannot open the Setup/Default page

Well, LastManStanding, I would love to know how you managed to get even the home page to open, I try to open just localhost/sitename/ and get this string of errors;

Server Error in '/' Application


a name did not start with a legal character 45 (-) Line 60, position 2.

Description: HTTP 400. Error processing request.

Stack Trace:

System.Xml.XmlException: a name did not start with a legal character 45 (-)  Line 60, position 2.
  at Mono.Xml2.XmlTextReader.ReadName (System.String& prefix, System.String& localName) [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadStartTag () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0 
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0 
  at System.Xml.XmlWriter.WriteNode (System.Xml.XmlReader reader, Boolean defattr) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlWriter.WriteNode (System.Xml.XmlReader reader, Boolean defattr) [0x00000] in <filename unknown>:0 
  at System.Xml.XmlReader.ReadOuterXml () [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000] in <filename unknown>:0 
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Load () [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000] in <filename unknown>:0 
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0 
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x00000] in <filename unknown>:0 

Version information: Mono Runtime Version: 2.10.5 (Debian 2.10.5-1); ASP.NET Version: 2.0.50727.1433

 

I am not even sure which programme is failing. If I try to go beyond the hostname to enter the hostname/Setup/Default.aspx page then it is just an Error 500 Apache Internal Server error.

But from what you say even when it runs you cannot access skins, which is my reason for wanting to run MP. I am trying to update a very old installation of MP and wanted to try it out locally before risking changing the "real" website.  

I can make a single ASP.Net page open correctly but there is some failure in the Apache Virtual Host / mono-server chain of events that is fatal.

Tony Morton 

12/30/2011 5:49:34 PM
Gravatar
Total Posts 2

Re: Ubuntu Linux cannot open the Setup/Default page

I am also having problem with mojoportal 2.3.6.5 for mono and postgresql:

Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.
at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000] in <filename unknown>:0
at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000] in <filename unknown>:0
at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000] in <filename unknown>:0
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000] in <filename unknown>:0
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000] in <filename unknown>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x00000] in <filename unknown>:0
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000] in <filename unknown>:0
at System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AppResourcesAssemblyBuilder..ctor (System.String canonicAssemblyName, System.String baseAssemblyPath, System.Web.Compilation.AppResourcesCompiler appres) [0x00000] in <filename unknown>:0
at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000] in <filename unknown>:0
at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000] in <filename unknown>:0
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000] in <filename unknown>:0

 

but with that said, if you (Mr. Audette) need a Linux virtual machine configured with asp.net, I can build one and host it on my web server with any Linux distribution.

Alain

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