2013-07-29, 11:37 PM
Hi all,
I've always been able to access NPVR (on the server) via firefox at http://192.168.1.204:8866/Guide2.aspx.
Suddenly I'm faced with the following error:
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 528:
Line 529: if (File.Exists(GetWebConfigFileName()))
Line 530: configWeb.Load(GetWebConfigFileName());
Line 531:
Line 532: globalSettings = new HybridDictionary();
Source File: c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs Line: 530
Stack Trace:
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +2681
System.Xml.XmlTextReaderImpl.Read() +65
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +155
System.Xml.XmlDocument.Load(XmlReader reader) +109
System.Xml.XmlDocument.Load(String filename) +93
N_EWA.classes.Settings.LoadFromFile(Boolean reload) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:530
N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:474
N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:160
N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:152
N_EWA.Global..cctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:56
[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:49
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.evzkg3ew.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, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230
System.Activator.CreateInstance(Type type, Boolean nonPublic) +67
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +197
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +31
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +134
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +290
I can access the server just fine and everything else on the server (and on the client) are working fine.
Can someone give me some advice?
I've always been able to access NPVR (on the server) via firefox at http://192.168.1.204:8866/Guide2.aspx.
Suddenly I'm faced with the following error:
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 528:
Line 529: if (File.Exists(GetWebConfigFileName()))
Line 530: configWeb.Load(GetWebConfigFileName());
Line 531:
Line 532: globalSettings = new HybridDictionary();
Source File: c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs Line: 530
Stack Trace:
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +2681
System.Xml.XmlTextReaderImpl.Read() +65
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +155
System.Xml.XmlDocument.Load(XmlReader reader) +109
System.Xml.XmlDocument.Load(String filename) +93
N_EWA.classes.Settings.LoadFromFile(Boolean reload) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:530
N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:474
N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:160
N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\web\App_Code\Classes\Settings.cs:152
N_EWA.Global..cctor() in c:\Users\Public\NPVR\web\App_Code\Global.cs:56
[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:49
ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.evzkg3ew.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, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +86
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230
System.Activator.CreateInstance(Type type, Boolean nonPublic) +67
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1051
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +197
System.Web.HttpApplicationFactory.FireApplicationOnStart(HttpContext context) +31
System.Web.HttpApplicationFactory.EnsureAppStartCalled(HttpContext context) +134
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +290
I can access the server just fine and everything else on the server (and on the client) are working fine.
Can someone give me some advice?