Results 1 to 10 of 10

Thread: 3.9.2 Web server not starting

  1. #1
    Join Date
    Aug 2011
    Location
    Virginia, USA
    Posts
    647

    3.9.2 Web server not starting

    I just updated NPVR to 3.9.2 and X-Newa alpha 8 would no longer connect to NPVR. I updated to beta 1 and it still won't connect. Has something changed?

  2. #2
    Join Date
    May 2006
    Location
    Canada
    Posts
    25,770
    Quote Originally Posted by cncb View Post
    I just updated NPVR to 3.9.2 and X-Newa alpha 8 would no longer connect to NPVR. I updated to beta 1 and it still won't connect. Has something changed?
    Check that the web server is running and if it not check this thread http://forums.nextpvr.com/showthread...error-in-3-9-2

    Martin

  3. #3
    Join Date
    Aug 2011
    Location
    Virginia, USA
    Posts
    647
    The web server does not appear to be running but I don't get any detailed error reporting (just a generic runtime error) and I don't appear to have that NativeServiceController.cs file anywhere.

  4. #4
    Join Date
    May 2006
    Location
    Canada
    Posts
    25,770
    Check the Windows Eventviewer.

    Martin

  5. #5
    Join Date
    Aug 2011
    Location
    Virginia, USA
    Posts
    647
    What should I look for in the Event Viewer? I also tried the new "nrecord" from the other thread about Web Admin login failure but it didn't help.

  6. #6
    Join Date
    May 2006
    Location
    Canada
    Posts
    25,770
    Recent ASP.net errors or warnings in the Windows Logs-> Applications

    Martin

  7. #7
    Join Date
    Aug 2011
    Location
    Virginia, USA
    Posts
    647
    Code:
    HttpCompileException
    t:\Data\NPVR\web\App_Code\Classes\VerifyInernalNetworkJSON.cs(129): error CS1061: 'N_EWA.classes.Settings' does not contain a definition for 'GetIP4Address' and no extension method 'GetIP4Address' accepting a first argument of type 'N_EWA.classes.Settings' could be found (are you missing a using directive or an assembly reference?)
       at System.Web.Compilation.AssemblyBuilder.Compile()
       at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
       at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)
       at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
       at System.Web.Compilation.BuildManager.CompileCodeDirectories()
       at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
       at System.Web.Compilation.BuildManager.CallAppInitializeMethod()
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
    
    
    http://[::ffff:192.168.1.2]:8866/modern/index.html
    /modern/index.html
    ::ffff:192.168.1.43
    False
    BASE\Admin
    8
    BASE\Admin
    False
       at System.Web.Compilation.AssemblyBuilder.Compile()
       at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
       at System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed)
       at System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories)
       at System.Web.Compilation.BuildManager.CompileCodeDirectories()
       at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
       at System.Web.Compilation.BuildManager.CallAppInitializeMethod()
       at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

  8. #8
    Join Date
    Aug 2011
    Location
    Virginia, USA
    Posts
    647
    I get this detail in the browser on the server:

    Code:
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
    
    Compiler Error Message: CS1061: 'N_EWA.classes.Settings' does not contain a definition for 'GetIP4Address' and no extension method 'GetIP4Address' accepting a first argument of type 'N_EWA.classes.Settings' could be found (are you missing a using directive or an assembly reference?)
    
    Source Error:
    
    
    
    Line 127:                Logger.Info("IP V6 Detected on Server ");
    Line 128:                Logger.Info("IP6 Address: " + address);
    Line 129:                if (Global.Settings.autologinNets.CheckNumber(Global.Settings.GetIP4Address()))
    Line 130:                {
    Line 131:                    IsInternalnetwork = true;
    
    Source File: t:\Data\NPVR\web\App_Code\Classes\VerifyInernalNetworkJSON.cs ** Line: 129

  9. #9
    Join Date
    May 2006
    Location
    Canada
    Posts
    25,770
    Ah that will do it, sub only deleted the obsolete file VerifyInernalNetworkJSON.cs from a hard-coded folder not using the registry or API Delete it and restart the service.

    Martin
    Last edited by mvallevand; 2016-11-22 at 09:56 PM.

  10. #10
    Join Date
    Aug 2011
    Location
    Virginia, USA
    Posts
    647
    Thanks - all is working now.

Posting Permissions

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