I am using infragistic v 11.1.
I have an issue with WebMonthView control .When i set WebScheduleInfo1.ActiveDayUtc = '12/31/9999' or any date of dec-9999 system will raise an below error.Error message = The added or subtracted value results in an un-representable DateTime. Parameter name: value stack Trace = at System.DateTime.AddTicks(Int64 value) at System.DateTime.Add(Double value, Int32 scale) at Infragistics.WebUI.WebSchedule.WebMonthView.CalculateCurrentMonth() at Infragistics.WebUI.WebSchedule.WebMonthView.set_WebScheduleInfo(WebScheduleInfo value) at Infragistics.WebUI.WebSchedule.WebMonthView.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Please let me know can i fix this issue.Please let me know ASAP.
Hello cmm,
Thank you for posting in the community.
Is there any particular reason why you would need to set the value of the WebScheduleInfo to a date so far in the future ? If you provide me with more specific information as to your requirements I would be happy to look into the matter.
Please feel free to contact me if you have any questions.
We are doing stress testing of our application. If in case user has entered max value by mistake then it should not raise exception.
Thanks
Hi cmm,
Thank you for your reply.
I have asked our engineering staff to examine this further. In order to ensure that the matter will receive attention I have logged this issue in our internal tracking system with an id of 114329. The next step would be for a developer to provide more insight on the matter.
Your support ticket regarding this matter is CAS-93554-YGRP1X. You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site.
In the meantime I can suggest that you handle the ActiveDayChanging event of your WebScheduleInfo and cancel it if the new date year is 9999:
protected void WebScheduleInfo1_ActiveDayChanging(object sender, Infragistics.WebUI.WebSchedule.ActiveDayChangingEventArgs e) { if (e.NewDate.Year == 9999) { e.Cancel = true; } }
Please feel free to contact me if you have any quesitons.