Error in content manager

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

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.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/21/2008 2:09:20 PM
Gravatar
Total Posts 8

Error in content manager

http://pic.ipicture.ru/uploads/081221/T4rNlQ69TY.jpg

Exception:

Server Error in '/mojo' Application.
Invalid cast from 'Int32' to 'DateTime'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidCastException: Invalid cast from 'Int32' to 'DateTime'.

Stack Trace: 

[InvalidCastException: Invalid cast from 'Int32' to 'DateTime'.]
  System.Int32.System.IConvertible.ToDateTime(IFormatProvider provider) +159
  System.Convert.ToDateTime(Int32 value) +33
  mojoPortal.Web.AdminUI.ContentManagerPage.GetBeginDate(Object o) +112
  ASP.admin_contentmanager_aspx.__DataBinding__control27(Object sender, EventArgs e) +80
  System.Web.UI.Control.OnDataBinding(EventArgs e) +99
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +206
  System.Web.UI.Control.DataBind() +12
  System.Web.UI.Control.DataBindChildren() +204
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
  System.Web.UI.Control.DataBind() +12
  System.Web.UI.Control.DataBindChildren() +204
  System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +216
  System.Web.UI.Control.DataBind() +12
  System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +221
  System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +2957
  System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +59
  System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +11
  System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +97
  System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +29
  System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
  System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
  System.Web.UI.WebControls.GridView.DataBind() +4
  mojoPortal.Web.AdminUI.ContentManagerPage.BindControls() +154
  mojoPortal.Web.AdminUI.ContentManagerPage.grdPages_RowEditing(Object sender, GridViewEditEventArgs e) +78
  System.Web.UI.WebControls.GridView.OnRowEditing(GridViewEditEventArgs e) +133
  System.Web.UI.WebControls.GridView.HandleEdit(Int32 rowIndex) +40
  System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +673
  System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +95
  System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
  System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +117
  System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
  System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +87
  System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +171
  System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
  System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
  System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

12/22/2008 6:28:15 AM
Gravatar
Total Posts 18439

Re: Error in content manager

Hi,

Thanks for reporting this. I am able to produce the problem here so I will fix it right away and put out patched release asap.

The error happens only when you try to un-publish the content. In the meantime, as a workaround, you can still un-publish content from a page using the pagelayout.aspx (pencil icon).

Best,

Joe

12/22/2008 6:46:19 AM
Gravatar
Total Posts 18439

Re: Error in content manager

I found and fixed this, it was a typo in the code. I will update the release packages asap.

Best,

Joe

12/22/2008 9:57:42 AM
Gravatar
Total Posts 18439

Re: Error in content manager

I have updated the files on Codeplex with the fix for this problem.

Best,

Joe

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