2013-10-26, 08:37 AM
Web Admin hasn't been working for a while, and I've finally got around to trying to find out why - but without success.
Any suggestions? (NPVR 2.5.5 - yes I know)
Code:
[color=#FF0000][SIZE=4]Server Error in '/' Application.[/SIZE][/color]
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.
[B]Source Error[/B]:
Line 524:
Line 525: if (File.Exists(GetWebConfigFileName()))
[color=#FF0000]Line 526: configWeb.Load(GetWebConfigFileName());[/color]
Line 527:
Line 528: globalSettings = new HybridDictionary();
Source File: c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\Settings.cs Line: 526
[B]Stack Trace[/B]:
[XmlException: Root element is missing.]
System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
System.Xml.XmlTextReaderImpl.ParseDocumentContent() +2694
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:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\Settings.cs:526
N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\Settings.cs:470
N_EWA.classes.Settings.Load() in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\Settings.cs:158
N_EWA.classes.Settings..ctor() in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Classes\Settings.cs:150
N_EWA.Global..cctor() in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Global.cs:44
[TypeInitializationException: The type initializer for 'N_EWA.Global' threw an exception.]
N_EWA.Global..ctor() in c:\Documents and Settings\All Users\Application Data\NPVR\web\App_Code\Global.cs:37
ASP.global_asax..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\98d3b820\6de0daa9\App_global.asax.abbn7b6a.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
Version Information: Microsoft .NET Framework Version:2.0.50727.3649; ASP.NET Version:2.0.50727.3634
Any suggestions? (NPVR 2.5.5 - yes I know)
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]