2014-01-10, 01:34 PM 
	
	
	
		Sorry UJB,
another error?
	
	
	
another error?
Code:
Specified cast is not valid. 
  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: Specified cast is not valid.
Source Error: 
Line 873:                {
Line 874:                    Logger.Info(".....Processing title for days: " + epgevent.Title + " on channel/date/time: " + Channel.LoadByOID(epgevent.ChannelOID).Name + "   " + epgevent.StartTime.ToLocalTime().ToShortDateString() + " " + epgevent.StartTime.ToLocalTime().TimeOfDay + " " + epgevent.StartTime.ToLocalTime().DayOfWeek + "  ==> " + epgevent.EndTime.ToLocalTime().ToShortDateString() + " " + epgevent.EndTime.ToLocalTime().TimeOfDay + " " + epgevent.StartTime.ToLocalTime().DayOfWeek);
Line 875:                    foreach (DayOfWeek day in selectedDays)
Line 876:                    {
Line 877:                         if (epgevent.StartTime.ToLocalTime().DayOfWeek == day)
  
 Source File:  c:\Users\Public\NPVR\web\App_Code\Classes\SearchEngine.cs    Line:  875 
Stack Trace: 
[InvalidCastException: Specified cast is not valid.]
   N_EWA.classes.SearchEngine.filterSearchResults(Int32 minLength, Int32 maxLength, ArrayList selectedDays) in c:\Users\Public\NPVR\web\App_Code\Classes\SearchEngine.cs:875
   N_EWA.classes.SearchEngine.SelectEPGEvents(Array channels, Array selectedGenre, Boolean checkTitle, Boolean checkDesc, Boolean checkSubtitle, Boolean matchTitle, Boolean matchDesc, Boolean matchSubtitle, Boolean startTitle, Boolean startDesc, Boolean startSubtitle, Boolean matchUniqueID, String searchFor, Boolean caseSensitive, Schedule scheduleHelper, Int32 EPG_EVENTMinLength, Int32 EPG_EVENTMaxLength, ArrayList selectedDays) in c:\Users\Public\NPVR\web\App_Code\Classes\SearchEngine.cs:543
   N_EWA.classes.SavedSearchUtils.autoSearch(ArrayList Searches) in c:\Users\Public\NPVR\web\App_Code\Classes\SavedSearch.cs:1076
   N_EWA.Logon.CompleteLogin() in c:\Users\Public\NPVR\web\Logon.aspx.cs:392
   N_EWA.Logon.Page_Load(Object sender, EventArgs e) in c:\Users\Public\NPVR\web\Logon.aspx.cs:119
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +61
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2625
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |