Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Server Error in '/' Application

  1. #1
    Join Date
    Feb 2006
    Location
    North Lawrence, NY
    Posts
    837

    Server Error in '/' Application

    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>

  2. #2
    Join Date
    Feb 2006
    Location
    North Lawrence, NY
    Posts
    837
    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

  3. #3
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,526
    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.

  4. #4
    Join Date
    Feb 2006
    Location
    North Lawrence, NY
    Posts
    837
    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.

  5. #5
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,526
    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.

  6. #6
    Join Date
    Feb 2006
    Location
    North Lawrence, NY
    Posts
    837
    Yup, renamed and everything works great. Then deleted the corrupted one.

    Thanks!

  7. #7
    Join Date
    Jul 2005
    Location
    HK - Pal I
    Posts
    3,439
    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 | Various HD's | AC86U | USB-UIRT | PCH-A110 | RPi2 | Sony Bravia LCD X9000F Android TV |. Frustrated that NextPVR is not working? Take a moment and consider this and this and this and this and this and this. Credit where credit's due; for one guy (with a wife and two kids), most problems are solved outrageously quickly. Patience.

  8. #8
    Join Date
    Feb 2006
    Location
    North Lawrence, NY
    Posts
    837
    This one: C:\Users\Public\NPVR\

    That fixed it for me.

  9. #9
    Join Date
    Feb 2005
    Location
    Pennsylvania, USA
    Posts
    5,526
    Quote Originally Posted by smajor View Post
    Yup, renamed and everything works great. Then deleted the corrupted one.

    Thanks!
    Excellent!

  10. #10
    Join Date
    Jul 2005
    Location
    HK - Pal I
    Posts
    3,439
    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 | Various HD's | AC86U | USB-UIRT | PCH-A110 | RPi2 | Sony Bravia LCD X9000F Android TV |. Frustrated that NextPVR is not working? Take a moment and consider this and this and this and this and this and this. Credit where credit's due; for one guy (with a wife and two kids), most problems are solved outrageously quickly. Patience.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •