2011-09-23, 11:00 PM
OK, I renamed config-web.xml (not called web-config.xml), stopped and started NPVR, logged in and it recreated the file.
All seems OK for now, need to check remotely, but I did notice when I tried to "Search Now" from config, I got this error.
All seems OK for now, need to check remotely, but I did notice when I tried to "Search Now" from config, I got this error.
Code:
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 834: foreach (EPGEvent epgevent in epgeventArray)
Line 835: {
Line 836: foreach (DayOfWeek day in selectedDays)
Line 837: {
Line 838: if (epgevent.StartTime.ToLocalTime().DayOfWeek == day)
Source File: c:\Users\Public\NPVR\Web\App_Code\Classes\SearchEngine.cs Line: 836
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:836
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:518
N_EWA.classes.SavedSearchUtils.autoSearch(ArrayList Searches) in c:\Users\Public\NPVR\Web\App_Code\Classes\SavedSearch.cs:1162
N_EWA.Admin.forceSearch_Click(Object sender, EventArgs e) in c:\Users\Public\NPVR\Web\Admin.aspx.cs:220
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +78
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +100
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863
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 |