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 2 3 4 5 … 47 Next »
Server Error in '/' Application

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

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#1
2011-09-16, 10:09 PM
Hello, I'm running NPVR on Win 7. I have never used the web admin with NPVR, although I've been using NPVR for a long time. I enabled it in the previous version of NPVR, gave myself a user/pass, but am receiving the following error. A saw a similar thread, not quite the same error.

I let it be and installed 2.2.6 and still the error remains. I downloaded it from the wiki and replaced the contents of the web directory with the download. Still the same. Any ideas?

Code:
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
smajor
Offline

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#2
2011-09-16, 11:29 PM
Ah, more info after I adjusted the custom error settings. Ideas?
Code:
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 502:
Line 503:            if (File.Exists(GetWebConfigFileName()))
Line 504:                configWeb.Load(GetWebConfigFileName());
Line 505:
Line 506:            globalSettings = new HybridDictionary();


Source File: c:\Users\Public\NPVR\Web\App_Code\Classes\Settings.cs    Line: 504

Stack Trace:

[XmlException: Root element is missing.]
   System.Xml.XmlTextReaderImpl.Throw(Exception e) +76
   System.Xml.XmlTextReaderImpl.ParseDocumentContent() +2794
   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:504
   N_EWA.classes.Settings.GetSetting(Object moduleObject, String settingName) in c:\Users\Public\NPVR\Web\App_Code\Classes\Settings.cs:448
   N_EWA.classes.Settings.Load() in c:\Users\Public\NPVR\Web\App_Code\Classes\Settings.cs:148
   N_EWA.classes.Settings..ctor() in c:\Users\Public\NPVR\Web\App_Code\Classes\Settings.cs:140
   N_EWA.Global..cctor() in c:\Users\Public\NPVR\Web\App_Code\Global.cs:44

[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:37
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\0a635572\38fd2de4\App_global.asax.xeqdxkzh.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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#3
2011-09-17, 01:08 AM
Can you post the web.log when this error occurs....should be in the logs directory of your NPVR data.....also your config-web.xml file in the npvr data directory. Looking at this it appears your web.config may be corrupt.
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
smajor
Offline

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#4
2011-09-17, 01:23 AM
Sure, the system is in use right now, so I'll grab those tomorrow. If I delete the config-web.xml, will it be recreated with defaults? I really haven't done anything with it so I won't lose anything custom.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2011-09-17, 01:36 AM
Yes....if you delete the web-config.xml it will be recreated with all the defaults. To be safe....just rename it and see what happens.
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
smajor
Offline

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#6
2011-09-17, 05:55 PM
Yup, renamed and everything works great. Then deleted the corrupted one.

Thanks!
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#7
2011-09-17, 11:06 PM
I get that error from time to time too.
Can I clarify - do I delete web-config.xml in C:\Users\Public\NPVR or web.config in C:\Users\Public\NPVR\Web ?
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 |
smajor
Offline

Posting Freak

Posts: 840
Threads: 115
Joined: Feb 2006
#8
2011-09-17, 11:12 PM
This one: C:\Users\Public\NPVR\

That fixed it for me.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#9
2011-09-18, 02:00 AM
smajor Wrote:Yup, renamed and everything works great. Then deleted the corrupted one.

Thanks!

Excellent!
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
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#10
2011-09-23, 12:35 PM
Quote:C:\Users\Public\NPVR\


Hmmm I don't seem to have a web-config.xml at all?

There is a config-web.xml => is this the correct one?

If not how do I recreate it?

at

k.
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 |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error with Web Admin? jksmurf 0 2,329 2019-06-20, 10:34 AM
Last Post: jksmurf
  Error when trying to stream from NEWA on PC jksmurf 2 2,793 2017-02-27, 05:12 AM
Last Post: jksmurf
  Server Error in '/' Application [streaming failure] oldman 3 3,040 2017-02-04, 12:48 AM
Last Post: UncleJohnsBand
  Server Error when settign a manual recording in NEWA martinu 2 2,333 2017-01-23, 01:30 AM
Last Post: UncleJohnsBand
  Internal Server Error SilverTiger 5 3,193 2016-07-24, 04:03 PM
Last Post: UncleJohnsBand
  "Record selected" returns error web page ... softfoot 5 3,742 2016-03-26, 01:37 PM
Last Post: UncleJohnsBand
  Server Error in "/" Application ? Lone_Stranger 1 2,406 2016-02-19, 02:10 AM
Last Post: UncleJohnsBand
  Server Error in '/' Application mdenecke 1 2,910 2016-01-13, 03:33 AM
Last Post: UncleJohnsBand
  Server Error when trying to schedule with NEWA in 336? jksmurf 5 3,732 2015-12-12, 12:34 AM
Last Post: jksmurf
  Mobile NEWA Error - 'RenderEpg' psycik 4 2,465 2015-09-15, 01:05 AM
Last Post: UncleJohnsBand

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

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

Linear Mode
Threaded Mode