2023-01-11, 12:11 AM
back in sept, 2022 i installed version 5 and it worked fine for awhile. Then I couldn't login any longer. the old style 4.2.4 exe worked fine, so i've been using that since sept. decided to look into the problem now. still doesn't work. just reinstalled over the top of what i had. doing some recordings now, so don't want to unistall for a bit. when i start what was a chrome shortcut with http://localhost:8866/ i get
Server Error in '/' Application.
Server Error in '/' Application.
Root element is missing.
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.Xml.XmlException: Root element is missing.
Source Error:
Line 796:
Line 797: if (File.Exists(GetWebConfigFileName()))
Line 798: configWeb.Load(GetWebConfigFileName());
Line 799:
Line 800: globalSettings = new HybridDictionary();
Source File: c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs Line: 798
Stack Trace:
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +69
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1266
System.Xml.XmlTextReaderImpl.Read() +63
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +253
System.Xml.XmlDocument.Load(XmlReader reader) +108
System.Xml.XmlDocument.Load(String filename) +124
N_EWA.classes.Settings.LoadFromFile(Boolean reload) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:798
N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:742
N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:174
N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:166
N_EWA.Global..cctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:78
[TypeInitializationException: The type initializer for 'N_EWA.Global' threw an exception.]
N_EWA.Global..ctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:71
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.f-p_sm9s.0.cs:0
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +122
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +239
System.Activator.CreateInstance(Type type, Boolean nonPublic) +85
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1173
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +130
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +21
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +44
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +130
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +35
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +195
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +83
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +520
==========================================================================================
same error message with firefox.
probably should fix this but i'm happy for now using 4.2.4. i can record locally and watch with vlc. remotely, my recordings are on a share, so also watch with vlc. i can get log files but this looks like it is more a configuration problem with my pc.
would appreciate help in debugging. thanks.
Server Error in '/' Application.
Server Error in '/' Application.
Root element is missing.
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.Xml.XmlException: Root element is missing.
Source Error:
Line 796:
Line 797: if (File.Exists(GetWebConfigFileName()))
Line 798: configWeb.Load(GetWebConfigFileName());
Line 799:
Line 800: globalSettings = new HybridDictionary();
Source File: c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs Line: 798
Stack Trace:
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +69
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +1266
System.Xml.XmlTextReaderImpl.Read() +63
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +253
System.Xml.XmlDocument.Load(XmlReader reader) +108
System.Xml.XmlDocument.Load(String filename) +124
N_EWA.classes.Settings.LoadFromFile(Boolean reload) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:798
N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:742
N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:174
N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:166
N_EWA.Global..cctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:78
[TypeInitializationException: The type initializer for 'N_EWA.Global' threw an exception.]
N_EWA.Global..ctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:71
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.f-p_sm9s.0.cs:0
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +122
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +239
System.Activator.CreateInstance(Type type, Boolean nonPublic) +85
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1173
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +130
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +21
System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +44
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +130
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +35
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +195
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +83
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +520
==========================================================================================
same error message with firefox.
probably should fix this but i'm happy for now using 4.2.4. i can record locally and watch with vlc. remotely, my recordings are on a share, so also watch with vlc. i can get log files but this looks like it is more a configuration problem with my pc.
would appreciate help in debugging. thanks.