mojoPortal is no longer supported on mono. This forum is here for archival purposes.
I'm trying to run the mojoPortal on Ubuntu (mono 2.6.7) and got a few bugs:
1. When I edit the properties of the module where the ColorSetting is used (eg Poll), then get an error:
System.ArgumentException: key Parameter name: Duplicate key in add. at System.Collections.Specialized.ListDictionary.Add (System.Object key, System.Object value) [0x00000] in <filename unknown>:0 at System.Web.UI.CssStyleCollection.ParseStyle (Int32 startIndex) [0x00000] in <filename unknown>:0 at System.Web.UI.CssStyleCollection.InitFromStyle () [0x00000] in <filename unknown>:0 at System.Web.UI.CssStyleCollection.set_Value (System.String value) [0x00000] in <filename unknown>:0 at System.Web.UI.AttributeCollection.Add (System.String key, System.String value) [0x00000] in <filename unknown>:0 at System.Web.UI.AttributeCollection.set_Item (System.String key, System.String value) [0x00000] in <filename unknown>:0 at System.Web.UI.HtmlControls.HtmlControl.System.Web.UI.IAttributeAccessor.SetAttribute (System.String name, System.String value) [0x00000] in <filename unknown>:0 at ASP.controls_colorsetting_ascx.__BuildControl_spnButton () [0x00000] in <filename unknown>:0 at ASP.controls_colorsetting_ascx.__BuildControlTree (ASP.controls_colorsetting_ascx __ctrl) [0x00000] in <filename unknown>:0 at ASP.controls_colorsetting_ascx.FrameworkInitialize () [0x00000] in <filename unknown>:0 at System.Web.UI.UserControl.InitializeAsUserControlInternal () [0x00000] in <filename unknown>:0 at System.Web.UI.UserControl.InitializeAsUserControl (System.Web.UI.Page page) [0x00000] in <filename unknown>:0 at System.Web.UI.TemplateControl.LoadControl (System.Type type, System.Object[] parameters) [0x00000] in <filename unknown>:0 at System.Web.UI.TemplateControl.LoadControl (System.String virtualPath) [0x00000] in <filename unknown>:0 at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl (mojoPortal.Business.CustomModuleSetting s, System.Web.UI.WebControls.Panel groupPanel) [0x00000] in <filename unknown>:0 at mojoPortal.Web.AdminUI.ModuleSettingsPage.PopulateCustomSettings () [0x00000] in <filename unknown>:0 at mojoPortal.Web.AdminUI.ModuleSettingsPage.OnInit (System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0 at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename unknown>:0 at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0
I corrected this by changing in mojoPortal.Web.mono/Controls/ColorSettings.ascx:
<span id="spnButton" runat="server" style="border: 1px solid black;padding: 1px 10px;cursor: hand;cursor: pointer;"> </span>
to
<span id="spnButton" runat="server" style="border: 1px solid black;padding: 1px 10px;cursor: hand;"> </span>
2. When I clicked on the link "View Messages" of ContactForm, then get an error:
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.ContactUI.MessageListDialog
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/DialogMaster.Master" Line 2: CodeBehind="MessageListDialog.aspx.cs" Inherits="mojoPortal.Web.ContactUI.MessageListDialog" %> Line 3: Line 4: <asp:Content ContentPlaceHolderID="phHead" ID="HeadContent" runat="server">
Source File: /home/ykar/mojoPortal/Web/ContactForm/MessageListDialog.aspx Lines: 1, 2
I corrected this by adding MessageListDialog.* to mojoPortal.Features.UI.mono (missed reference).
Hi ykar,
Thanks for the bug reports and fixes! I will make the same changes in my copy and commit it to the repository later today.
Best,
Joe