calendar day view

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/4/2010 4:53:53 PM
Gravatar
Total Posts 10

calendar day view

Server Error in '/' Application.
--------------------------------------------------------------------------------

Unable to cast object of type 'System.TimeSpan' to type 'System.IConvertible'.
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: Unable to cast object of type 'System.TimeSpan' to type 'System.IConvertible'.

Source Error:


Line 13: <h3>
Line 14: <%# Server.HtmlEncode(DataBinder.Eval(Container, "DataItem.Title").ToString())%>
Line 15: <%# Convert.ToDateTime(DataBinder.Eval(Container, "DataItem.StartTime")).ToShortTimeString()%> - <%# Convert.ToDateTime(DataBinder.Eval(Container, "DataItem.EndTime")).ToShortTimeString()%>
Line 16: </h3>
Line 17: <NeatHtml:UntrustedContent ID="UntrustedContent1" runat="server" TrustedImageUrlPattern='<%# mojoPortal.Web.Framework.SecurityHelper.RegexRelativeImageUrlPatern %>' ClientScriptUrl="~/ClientScript/NeatHtml.js">
 

Source File: c:\Inetpub\Wwwroot\mojo\site\EventCalendar\DayView.aspx Line: 15

Stack Trace:


[InvalidCastException: Unable to cast object of type 'System.TimeSpan' to type 'System.IConvertible'.]
System.Convert.ToDateTime(Object value) +20
ASP.eventcalendar_dayview_aspx.__DataBind__control3(Object sender, EventArgs e) in c:\Inetpub\Wwwroot\mojo\site\EventCalendar\DayView.aspx:15
System.Web.UI.Control.OnDataBinding(EventArgs e) +91
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +201
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +101
System.Web.UI.Control.DataBind() +15
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +127
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +478
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
System.Web.UI.WebControls.Repeater.DataBind() +76
mojoPortal.Web.EventCalendarUI.EventCalendarDayView.PopulateControls() +612
mojoPortal.Web.EventCalendarUI.EventCalendarDayView.Page_Load(Object sender, EventArgs e) +84
System.Web.UI.Control.OnLoad(EventArgs e) +91
mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e) +12
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

12/6/2010 7:36:21 AM
Gravatar
Total Posts 18439

Re: calendar day view

Thanks for the bug report. This is now fixed in the source code repository and will be fixed in the next release.

Best,

Joe

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