NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 6 7 8 9 10 … 47 Next »
Server Error in '/' Application

 
  • 0 Vote(s) - 0 Average
Server Error in '/' Application
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#1
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.

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]
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,918
Threads: 956
Joined: May 2006
#2
2013-10-26, 03:31 PM
It looks like your config-web.xml in the data directory might be bad

Martin
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#3
2013-10-27, 12:49 AM
looks like it is finding the config file but it is damaged..... below is a valid config-web.xml file.....

Code:
<?xml version="1.0" encoding="UTF-8"?>
<settings>
  <globalSettings>
    <N_EWA>
      <CurrentSearchVersion>4.1</CurrentSearchVersion>
      <autoShowSearch>True</autoShowSearch>
      <autoShowRecord>False</autoShowRecord>
      <autoSearchDays>2</autoSearchDays>
      <lastAutoSearchDate>10/24/2013</lastAutoSearchDate>
      <reminder>2</reminder>
      <guideStartTime>
      </guideStartTime>
      <schedule>NPVR</schedule>
      <recordingQuality>best</recordingQuality>
      <showDescription>True</showDescription>
      <showSubtitle>True</showSubtitle>
      <showGenre>allGenre</showGenre>
      <showRating>True</showRating>
      <showNew>True</showNew>
      <showHD>True</showHD>
      <showIMDB>True</showIMDB>
      <showNetflix>True</showNetflix>
      <showTVCom>True</showTVCom>
      <showWiki>True</showWiki>
      <showCredits>True</showCredits>
      <showAirDate>True</showAirDate>
      <showStarRating>True</showStarRating>
      <playlistExtnesion>m3u</playlistExtnesion>
      <autologinNetworks>127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16</autologinNetworks>
      <GuestUser>
      </GuestUser>
      <GuestPassword>d41d8cd98f00b204e9800998ecf8427e</GuestPassword>
      <useAjax>True</useAjax>
      <WebServiceAuthEncryptIterations>25</WebServiceAuthEncryptIterations>
      <debugVLC>True</debugVLC>
      <defaultLoginPage>Logon.aspx</defaultLoginPage>
      <TranscodeLiveTv>False</TranscodeLiveTv>
      <TranscodeLiveTvResolution>720x406</TranscodeLiveTvResolution>
      <TranscodeLiveTvBitRate>900k</TranscodeLiveTvBitRate>
      <guideHeigth>0</guideHeigth>
      <lastGenreIsBest>False</lastGenreIsBest>
      <strmPlayer>VLC</strmPlayer>
      <strmExternal>True</strmExternal>
      <strmVLCLoc>C:\Program Files (x86)\VideoLAN\Vlc\</strmVLCLoc>
      <strmPort>7648</strmPort>
      <strmBuffer>5000</strmBuffer>
      <strmPriority>BelowNormal</strmPriority>
      <strmBitRate>0</strmBitRate>
      <strmVideoSizeOpt>scale</strmVideoSizeOpt>
      <strmVideoSize>320</strmVideoSize>
      <strmVideoScaleSize>00.50</strmVideoScaleSize>
      <strmSetting>3</strmSetting>
      <strmMux>ts</strmMux>
      <strmVideo>h264</strmVideo>
      <strmAudio>mp3</strmAudio>
      <strmAudoBitrate>32</strmAudoBitrate>
      <strmAudioChannels>2</strmAudioChannels>
      <strmVEncoder>h264</strmVEncoder>
      <strmH264KeyInt>
      </strmH264KeyInt>
      <strmH264IDRInt>
      </strmH264IDRInt>
      <strmH264BFrames>0</strmH264BFrames>
      <strmH264QuantizerParam>
      </strmH264QuantizerParam>
      <strmH264QuantizerMax>6</strmH264QuantizerMax>
      <strmH264QuantizerMin>
      </strmH264QuantizerMin>
      <strmH264CABAC>False</strmH264CABAC>
      <strmH264LoopFilter>False</strmH264LoopFilter>
      <strmH264Analyse>False</strmH264Analyse>
      <strmH264FrameRef>
      </strmH264FrameRef>
      <strmH264Adapt>none</strmH264Adapt>
      <strmH264Me>dia</strmH264Me>
      <strmH264SubME>1</strmH264SubME>
      <strmH264ChromaME>none</strmH264ChromaME>
      <strmH264MERange>1</strmH264MERange>
      <strmPlayer2>vlc</strmPlayer2>
      <strmExternal2>True</strmExternal2>
      <strmVLCLoc2>C:\Program Files (x86)\VideoLAN\Vlc\</strmVLCLoc2>
      <strmPort2>7648</strmPort2>
      <strmBuffer2>5000</strmBuffer2>
      <strmPriority2>BelowNormal</strmPriority2>
      <strmBitRate2>0</strmBitRate2>
      <strmVideoSizeOpt2>preset</strmVideoSizeOpt2>
      <strmVideoSize2>320x213</strmVideoSize2>
      <strmVideoScaleSize2>01.00</strmVideoScaleSize2>
      <strmSetting2>0</strmSetting2>
      <strmMux2>ts</strmMux2>
      <strmVideo2>mpg4</strmVideo2>
      <strmAudio2>mp3</strmAudio2>
      <strmAudoBitrate2>128</strmAudoBitrate2>
      <strmAudioChannels2>2</strmAudioChannels2>
      <strmVEncoder2>default</strmVEncoder2>
      <strmH264KeyInt2>
      </strmH264KeyInt2>
      <strmH264IDRInt2>
      </strmH264IDRInt2>
      <strmH264BFrames2>
      </strmH264BFrames2>
      <strmH264QuantizerParam2>
      </strmH264QuantizerParam2>
      <strmH264QuantizerMax2>
      </strmH264QuantizerMax2>
      <strmH264QuantizerMin2>
      </strmH264QuantizerMin2>
      <strmH264CABAC2>True</strmH264CABAC2>
      <strmH264LoopFilter2>True</strmH264LoopFilter2>
      <strmH264Analyse2>False</strmH264Analyse2>
      <strmH264FrameRef2>
      </strmH264FrameRef2>
      <strmH264Adapt2>none</strmH264Adapt2>
      <strmH264Me2>dia</strmH264Me2>
      <strmH264SubME2>1</strmH264SubME2>
      <strmH264ChromaME2>none</strmH264ChromaME2>
      <strmH264MERange2>1</strmH264MERange2>
      <cssIsDefault>False</cssIsDefault>
      <FanArtCacheRefresh>120000</FanArtCacheRefresh>
    </N_EWA>
  </globalSettings>
</settings>
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
ralphy
Offline

Senior Member

Posts: 255
Threads: 51
Joined: Nov 2006
#4
2013-10-27, 01:31 AM
UncleJohnsBand Wrote:looks like it is finding the config file but it is damaged..... below is a valid config-web.xml file.....
Indeed, the file was corrupted.

All good now, thanks for the valid file
[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]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Error with Web Admin? jksmurf 0 2,350 2019-06-20, 10:34 AM
Last Post: jksmurf
  Server Error in '/' Application smajor 19 16,885 2017-10-27, 12:57 PM
Last Post: mvallevand
  Error when trying to stream from NEWA on PC jksmurf 2 2,805 2017-02-27, 05:12 AM
Last Post: jksmurf
  Server Error in '/' Application [streaming failure] oldman 3 3,053 2017-02-04, 12:48 AM
Last Post: UncleJohnsBand
  Server Error when settign a manual recording in NEWA martinu 2 2,344 2017-01-23, 01:30 AM
Last Post: UncleJohnsBand
  Internal Server Error SilverTiger 5 3,207 2016-07-24, 04:03 PM
Last Post: UncleJohnsBand
  "Record selected" returns error web page ... softfoot 5 3,764 2016-03-26, 01:37 PM
Last Post: UncleJohnsBand
  Server Error in "/" Application ? Lone_Stranger 1 2,414 2016-02-19, 02:10 AM
Last Post: UncleJohnsBand
  Server Error in '/' Application mdenecke 1 2,920 2016-01-13, 03:33 AM
Last Post: UncleJohnsBand
  Server Error when trying to schedule with NEWA in 336? jksmurf 5 3,753 2015-12-12, 12:34 AM
Last Post: jksmurf

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode