I kicked mysql and installed postgresql! Works! I think I am not going to use mysql anymore! But there are still some errors!
When i log in as admin and click the "Admin" nav link i get following error:
Server error in '/' application
Description: Error processing request.
Error Message: HTTP 500.
Stack Trace:
System.ArgumentNullException: Argument cannot be null.
in <0x00043> System.Web.UI.ControlCollection:Add (System.Web.UI.Control)
in <0x002f6> mojoPortal.Web.ChildPageMenu:Page_Load (object,System.EventArgs)
in <0x00069> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0004b> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x00067> System.Web.UI.Control:OnLoad (System.EventArgs)
in <0x00031> System.Web.UI.Control:LoadRecursive ()
in <0x000b3> System.Web.UI.Control:LoadRecursive ()
in <0x000b3> System.Web.UI.Control:LoadRecursive ()
in <0x000b3> System.Web.UI.Control:LoadRecursive ()
in <0x000b3> System.Web.UI.Control:LoadRecursive ()
in <0x00198> System.Web.UI.Page:InternalProcessRequest ()
in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in <0x002eb> ExecuteHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
This happens with mysql and postgresql! The eventcalendar doesnt work! message:
Compilation Error
Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.
Error message: /tmp/68243.0.cs(198,0) : error CS0117: `mojoPortal.Web.DataCalendar' does not contain a definition for `DataItem' /tmp/68243.0.cs(214,0) : error CS0117: `mojoPortal.Web.DataCalendar' does not contain a definition for `DataItem' /tmp/68243.0.cs(230,0) : error CS0117: `mojoPortal.Web.DataCalendar' does not contain a definition for `DataItem' /tmp/68243.0.cs(262,0) : error CS0117: `mojoPortal.Web.DataCalendar' does not contain a definition for `DataItem' (0,0) : error failed: 4 error(s), 0 warnings
File name: /var/www/mojoportal/Modules/EventCalendar.ascx
Source File: /tmp/68243.0.cs
Line 1: // ------------------------------------------------------------------------------
Line 2: //
Line 3: // This code was generated by a tool.
Line 4: // Mono Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: //
Line 9: // ------------------------------------------------------------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.Security;
Line 21: using System.Web.SessionState;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25: using mojoPortal.Web;
Line 26:
Line 27: public class EventCalendar_ascx : mojoPortal.Web.EventCalendar {
Line 28:
Line 29: private static bool __intialized = false;
Line 30:
Line 31: protected System.Web.UI.WebControls.TableItemStyle _bctrl_99;
Line 32:
Line 33: protected System.Web.UI.WebControls.TableItemStyle _bctrl_100;
Line 34:
Line 35: protected System.Web.UI.WebControls.TableItemStyle _bctrl_101;
Line 36:
Line 37: protected System.Web.UI.WebControls.HyperLink _bctrl_103;
Line 38:
Line 39: protected System.Web.UI.DataBoundLiteralControl _bctrl_104;
Line 40:
Line 41: protected System.Web.UI.DataBoundLiteralControl _bctrl_105;
Line 42:
Line 43: protected System.Web.UI.DataBoundLiteralControl _bctrl_106;
Line 44:
Line 45: protected System.Web.UI.DataBoundLiteralControl _bctrl_107;
Line 46:
Line 47: public EventCalendar_ascx () {
Line 48: if ((ASP.EventCalendar_ascx.__intialized == false)) {
Line 49: ASP.EventCalendar_ascx.__intialized = true;
Line 50: }
Line 51: }
Line 52:
Line 53: protected override bool SupportAutoEvents {
Line 54: get {
Line 55: return false;
Line 56: }
Line 57: }
Line 58:
Line 59: protected System.Web.HttpApplication ApplicationInstance {
Line 60: get {
Line 61: return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 62: }
Line 63: }
Line 64:
Line 65: public override string TemplateSourceDirectory {
Line 66: get {
Line 67: return "/Modules";
Line 68: }
Line 69: }
Line 70:
Line 71: private void __BuildControlTree(System.Web.UI.Control __ctrl) {
Line 72: this.__BuildControl_Title1();
Line 73: System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
Line 74: __parser.AddParsedSubObject(this.Title1);
Line 75: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n"));
Line 76: this.__BuildControl_cal1();
Line 77: __parser.AddParsedSubObject(this.cal1);
Line 78: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n"));
Line 79: }
Line 80:
Line 81: private System.Web.UI.Control __BuildControl_Title1() {
Line 82: ASP.ModuleTitle_ascx __ctrl;
Line 83: __ctrl = new ASP.ModuleTitle_ascx();
Line 84: this.Title1 = __ctrl;
Line 85: this.Title1.InitializeAsUserControl(this.Page);
Line 86: __ctrl.EditText = "Add Link";
Line 87: __ctrl.ID = "Title1";
Line 88: __ctrl.EditUrl = "/LinksEdit.aspx";
Line 89: return __ctrl;
Line 90: }
Line 91:
Line 92: private System.Web.UI.Control __BuildControl_cal1() {
Line 93: mojoPortal.Web.DataCalendar __ctrl;
Line 94: __ctrl = new mojoPortal.Web.DataCalendar();
Line 95: this.cal1 = __ctrl;
Line 96: __ctrl.WeekendDayStyle.CssClass = "EventCalendarWeekendDay";
Line 97: __ctrl.CellPadding = 0;
Line 98: __ctrl.TitleStyle.BorderWidth = ((System.Web.UI.WebControls.Unit)(System.ComponentModel.TypeDescriptor.GetConverter(typeof(System.Web.UI.WebControls.Unit)).ConvertFrom("0")));
Line 99: __ctrl.DayField = "EventDate";
Line 100: __ctrl.SelectorStyle.BorderWidth = ((System.Web.UI.WebControls.Unit)(System.ComponentModel.TypeDescriptor.GetConverter(typeof(System.Web.UI.WebControls.Unit)).ConvertFrom("0")));
Line 101: __ctrl.NextPrevStyle.CssClass = "EventCalendarNextPrev";
Line 102: __ctrl.DayHeaderStyle.CssClass = "EventCalendarDayHeader";
Line 103: __ctrl.BorderWidth = ((System.Web.UI.WebControls.Unit)(System.ComponentModel.TypeDescriptor.GetConverter(typeof(System.Web.UI.WebControls.Unit)).ConvertFrom("1")));
Line 104: __ctrl.Width = ((System.Web.UI.WebControls.Unit)(System.ComponentModel.TypeDescriptor.GetConverter(typeof(System.Web.UI.WebControls.Unit)).ConvertFrom("100%")));
Line 105: __ctrl.NextPrevStyle.ForeColor = System.Drawing.Color.White;
Line 106: __ctrl.DayStyle.CssClass = "EventCalendarDay";
Line 107: __ctrl.SelectionMode = System.Web.UI.WebControls.CalendarSelectionMode.Day;
Line 108: __ctrl.ID = "cal1";
Line 109: __ctrl.ShowGridLines = true;
Line 110: __ctrl.TitleStyle.CssClass = "EventCalendarTitle";
Line 111: __ctrl.BorderColor = System.Drawing.Color.Black;
Line 112: __ctrl.BorderStyle = System.Web.UI.WebControls.BorderStyle.None;
Line 113: __ctrl.Font.Name = "Tahoma";
Line 114: this.__BuildControl__bctrl_99(__ctrl.DayWithEventsStyle);
Line 115: this.__BuildControl__bctrl_100(__ctrl.CurrentDayStyle);
Line 116: this.__BuildControl__bctrl_101(__ctrl.OtherMonthDayStyle);
Line 117: __ctrl.ItemTemplate = new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.__BuildControl__bctrl_102));
Line 118: __ctrl.NoEventsTemplate = new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.__BuildControl__bctrl_108));
Line 119: return __ctrl;
Line 120: }
Line 121:
Line 122: private void __BuildControl__bctrl_99(System.Web.UI.WebControls.TableItemStyle __ctrl) {
Line 123: __ctrl.Font.Bold = true;
Line 124: __ctrl.ForeColor = System.Drawing.Color.Black;
Line 125: }
Line 126:
Line 127: private void __BuildControl__bctrl_100(System.Web.UI.WebControls.TableItemStyle __ctrl) {
Line 128: __ctrl.Font.Bold = true;
Line 129: __ctrl.BackColor = System.Drawing.Color.WhiteSmoke;
Line 130: __ctrl.ForeColor = System.Drawing.Color.DarkGray;
Line 131: }
Line 132:
Line 133: private void __BuildControl__bctrl_101(System.Web.UI.WebControls.TableItemStyle __ctrl) {
Line 134: __ctrl.BackColor = System.Drawing.Color.LightGray;
Line 135: __ctrl.ForeColor = System.Drawing.Color.DarkGray;
Line 136: }
Line 137:
Line 138: private void __BuildControl__bctrl_102(System.Web.UI.Control __ctrl) {
Line 139: System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
Line 140: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\t\t
\n\t\t
\n\t\t"));
Line 141: this.__BuildControl__bctrl_103();
Line 142: __parser.AddParsedSubObject(this._bctrl_103);
Line 143: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\t\t\n\t\t"));
Line 152: this.__BuildControl__bctrl_107();
Line 153: __parser.AddParsedSubObject(this._bctrl_107);
Line 154: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\t\t
\n\t\t\n\t"));
Line 155: }
Line 156:
Line 157: private System.Web.UI.Control __BuildControl__bctrl_103() {
Line 158: System.Web.UI.WebControls.HyperLink __ctrl;
Line 159: __ctrl = new System.Web.UI.WebControls.HyperLink();
Line 160: this._bctrl_103 = __ctrl;
Line 161: __ctrl.ID = "editLink";
Line 162: __ctrl.DataBinding += new System.EventHandler(this.__BuildControl__bctrl_103_DB_0);
Line 163: __ctrl.DataBinding += new System.EventHandler(this.__BuildControl__bctrl_103_DB_1);
Line 164: __ctrl.DataBinding += new System.EventHandler(this.__BuildControl__bctrl_103_DB_2);
Line 165: __ctrl.DataBinding += new System.EventHandler(this.__BuildControl__bctrl_103_DB_3);
Line 166: return __ctrl;
Line 167: }
Line 168:
Line 169: public void __BuildControl__bctrl_103_DB_0(object sender, System.EventArgs e) {
Line 170: mojoPortal.Web.DataCalendar Container;
Line 171: System.Web.UI.WebControls.HyperLink target;
Line 172: target = ((System.Web.UI.WebControls.HyperLink)(sender));
Line 173: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 174: target.Text = System.Convert.ToString( EditAltText);
Line 175: }
Line 176:
Line 177: public void __BuildControl__bctrl_103_DB_1(object sender, System.EventArgs e) {
Line 178: mojoPortal.Web.DataCalendar Container;
Line 179: System.Web.UI.WebControls.HyperLink target;
Line 180: target = ((System.Web.UI.WebControls.HyperLink)(sender));
Line 181: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 182: target.ImageUrl = System.Convert.ToString( this.SiteRoot + "/Data/SiteImages/" + EditContentImage );
Line 183: }
Line 184:
Line 185: public void __BuildControl__bctrl_103_DB_2(object sender, System.EventArgs e) {
Line 186: mojoPortal.Web.DataCalendar Container;
Line 187: System.Web.UI.WebControls.HyperLink target;
Line 188: target = ((System.Web.UI.WebControls.HyperLink)(sender));
Line 189: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 190: target.Visible = ((bool)( IsEditable ));
Line 191: }
Line 192:
Line 193: public void __BuildControl__bctrl_103_DB_3(object sender, System.EventArgs e) {
Line 194: mojoPortal.Web.DataCalendar Container;
Line 195: System.Web.UI.WebControls.HyperLink target;
Line 196: target = ((System.Web.UI.WebControls.HyperLink)(sender));
Line 197: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 198: target.NavigateUrl = System.Convert.ToString( this.SiteRoot + "/EventCalendarEdit.aspx?pageid=" + PageID.ToString() + "&ItemID=" + Container.DataItem["ItemID"] + "&mid=" + ModuleID + "&pageindex=" + Request.Params.Get("pageindex") );
Line 199: }
Line 200:
Line 201: private System.Web.UI.Control __BuildControl__bctrl_104() {
Line 202: System.Web.UI.DataBoundLiteralControl __ctrl;
Line 203: __ctrl = new System.Web.UI.DataBoundLiteralControl(0, 1);
Line 204: this._bctrl_104 = __ctrl;
Line 205: __ctrl.DataBinding += new System.EventHandler(this.__DataBind__bctrl_104);
Line 206: return __ctrl;
Line 207: }
Line 208:
Line 209: public void __DataBind__bctrl_104(object sender, System.EventArgs e) {
Line 210: mojoPortal.Web.DataCalendar Container;
Line 211: System.Web.UI.DataBoundLiteralControl target;
Line 212: target = ((System.Web.UI.DataBoundLiteralControl)(sender));
Line 213: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 214: target.SetDataBoundString(0, System.Convert.ToString( Container.DataItem["ItemID"] ));
Line 215: }
Line 216:
Line 217: private System.Web.UI.Control __BuildControl__bctrl_105() {
Line 218: System.Web.UI.DataBoundLiteralControl __ctrl;
Line 219: __ctrl = new System.Web.UI.DataBoundLiteralControl(0, 1);
Line 220: this._bctrl_105 = __ctrl;
Line 221: __ctrl.DataBinding += new System.EventHandler(this.__DataBind__bctrl_105);
Line 222: return __ctrl;
Line 223: }
Line 224:
Line 225: public void __DataBind__bctrl_105(object sender, System.EventArgs e) {
Line 226: mojoPortal.Web.DataCalendar Container;
Line 227: System.Web.UI.DataBoundLiteralControl target;
Line 228: target = ((System.Web.UI.DataBoundLiteralControl)(sender));
Line 229: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 230: target.SetDataBoundString(0, System.Convert.ToString( Container.DataItem["ModuleID"] ));
Line 231: }
Line 232:
Line 233: private System.Web.UI.Control __BuildControl__bctrl_106() {
Line 234: System.Web.UI.DataBoundLiteralControl __ctrl;
Line 235: __ctrl = new System.Web.UI.DataBoundLiteralControl(0, 1);
Line 236: this._bctrl_106 = __ctrl;
Line 237: __ctrl.DataBinding += new System.EventHandler(this.__DataBind__bctrl_106);
Line 238: return __ctrl;
Line 239: }
Line 240:
Line 241: public void __DataBind__bctrl_106(object sender, System.EventArgs e) {
Line 242: mojoPortal.Web.DataCalendar Container;
Line 243: System.Web.UI.DataBoundLiteralControl target;
Line 244: target = ((System.Web.UI.DataBoundLiteralControl)(sender));
Line 245: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 246: target.SetDataBoundString(0, System.Convert.ToString( "&pageindex=" + Request.Params.Get("pageindex") ));
Line 247: }
Line 248:
Line 249: private System.Web.UI.Control __BuildControl__bctrl_107() {
Line 250: System.Web.UI.DataBoundLiteralControl __ctrl;
Line 251: __ctrl = new System.Web.UI.DataBoundLiteralControl(0, 1);
Line 252: this._bctrl_107 = __ctrl;
Line 253: __ctrl.DataBinding += new System.EventHandler(this.__DataBind__bctrl_107);
Line 254: return __ctrl;
Line 255: }
Line 256:
Line 257: public void __DataBind__bctrl_107(object sender, System.EventArgs e) {
Line 258: mojoPortal.Web.DataCalendar Container;
Line 259: System.Web.UI.DataBoundLiteralControl target;
Line 260: target = ((System.Web.UI.DataBoundLiteralControl)(sender));
Line 261: Container = ((mojoPortal.Web.DataCalendar)(target.BindingContainer));
Line 262: target.SetDataBoundString(0, System.Convert.ToString( Container.DataItem["Title"] ));
Line 263: }
Line 264:
Line 265: private void __BuildControl__bctrl_108(System.Web.UI.Control __ctrl) {
Line 266: System.Web.UI.IParserAccessor __parser = ((System.Web.UI.IParserAccessor)(__ctrl));
Line 267: __parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\n\t\t
\n\t\t
\n\t\t
\n\t\t
\n\t\t
\n\t"));
Line 268: }
Line 269:
Line 270: protected override void FrameworkInitialize() {
Line 271: this.__BuildControlTree(this);
Line 272: }
Line 273: }
Line 274:
Line 275: }