NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 85 86 87 88 89 … 433 Next »
Upgraded from 3.9.2 to 4.0.4 now web server broken

Upgraded from 3.9.2 to 4.0.4 now web server broken
itm2
Offline

Member

Posts: 58
Threads: 16
Joined: Sep 2016
#1
2017-07-24, 02:11 PM
I upgraded from v3.9.2 to v4.0.4 (after first closing NPVR service), and now I can't access the NPVR web server - I get a timeout when attempting to access it on the localhost. I've tried rebooting, then renaming config-web.xml and restarting the NPVR recording service, but neither helped. I can open the NPVR application and see the WEPG etc, but have no web access. I attach my log files.

Any ideas??
itm2
Offline

Member

Posts: 58
Threads: 16
Joined: Sep 2016
#2
2017-07-24, 02:12 PM
I should have said - it's running on Windows 10
HunsakerEastIdaho
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Jul 2017
#3
2017-07-29, 05:16 PM
(Your log files are about as useful as mine, as in they are failing to capture the actual error.)

I'm not sure if we are having the same problem. I also am on Windows 10. I kept getting a runtime error (I have the browser's "debug" feature enabled) stating the GetIP4Address function wasn't defined. The definition for this routine actually was missing from my "web\App_Code\Classes\Settings.cs" file. After comparing the new settings.cs file with the older version in the standard NEWA zip file, I found the missing section in the old file and copied it to the appropriate location in the new file. After this, all my NPVR web pages are back to working. (FYI, this particular fix also takes without having to stop then restart the service.)

Specifically, right before the section that begins with:
public string[] ParseAutologinNetworks()

Insert the following:

Code:
public string GetIP4Address()
        {
            string strIP4Address = String.Empty;

            foreach (IPAddress objIP in Dns.GetHostAddresses(Dns.GetHostName()))
            {
                if (objIP.AddressFamily.ToString() == "InterNetwork")
                {
                    strIP4Address = objIP.ToString();
                    break;
                }
            }
            return strIP4Address;
        }
HunsakerEastIdaho
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Jul 2017
#4
2017-07-29, 05:20 PM
P.S. The "Post Quick Reply" stripped out all the leading space characters from the above code. It still will work, but isn't quite as easy to read. Sorry about that.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,802
Threads: 769
Joined: Nov 2003
#5
2017-07-29, 05:32 PM
HunsakerEastIdaho Wrote:I'm not sure if we are having the same problem. I also am on Windows 10. I kept getting a runtime error (I have the browser's "debug" feature enabled) stating the GetIP4Address function wasn't defined. The definition for this routine actually was missing from my "web\App_Code\Classes\Settings.cs" file. After comparing the new settings.cs file with the older version in the standard NEWA zip file, I found the missing section in the old file and copied it to the appropriate location in the new file. After this, all my NPVR web pages are back to working. (FYI, this particular fix also takes without having to stop then restart the service.)
Did you notice what page or cs file needed this function to exist?

I just had a check of the code, and looks like everything is depending on Global.GetIP4Address() (from Global.cs). ie, you shouldnt need to define this in Settings.cs. I'm wondering if one of your other files failed to update during the upgrade?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,157
Threads: 958
Joined: May 2006
#6
2017-07-29, 05:43 PM
Web server errors are often logged in the event viewer.

Martin
HunsakerEastIdaho
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Jul 2017
#7
2017-07-29, 10:19 PM
The specific cs file that calls the GetIP4Address function is web\App_Code\Classes\VerifyInernalNetworkJSON.cs ("Inernal", not "Internal")
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,157
Threads: 958
Joined: May 2006
#8
2017-07-29, 10:43 PM
Yes that is a normal error typically because you have obsolete file left over and you don't have NextPVR installed in the normal c:\users\public\npvr folder.

The correct solution is to delete web\App_Code\Classes\VerifyInernalNetworkJSON.cs

Martin
HunsakerEastIdaho
Offline

Junior Member

Posts: 4
Threads: 0
Joined: Jul 2017
#9
2017-07-29, 11:49 PM
I just verified that deleting VerifyInernalNetworkJSON.cs also solves my problem. Thanks!

(For reasons I feel are inappropriate to discuss in a public forum, I use ProgramData instead of Users\Public, but I also added a 2nd complication by naming the next folder NextPVR instead of NPVR. The latter definitely is my bad.)

itm2, have you been able to follow through on mvallevand's advice to check the Event Viewer for web server errors? My particular problem shows up in the Application event log, with a source of "ASP.NET.4.0.30319.0". Your particular error should also show up in the Application event log, but it may show up coming from a different source...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IR Server Suite Channel Changer BTJustice 26 27,493 2023-01-11, 08:49 PM
Last Post: Frapo
  Lights-Out for Windows Home Server 2011? TuckerDean 1 1,378 2021-01-28, 01:52 PM
Last Post: mvallevand
  Configure NextPVR Server Pliedes 1 1,861 2020-10-07, 04:59 PM
Last Post: sub
  Lights-Out for Windows Home Server 2011 pvrip 6 3,321 2020-05-21, 04:56 PM
Last Post: Madlec
  (I think) I've broken it... macgyver 10 3,770 2020-04-07, 02:18 PM
Last Post: mvallevand
Photo Server database error mnthope 4 2,253 2019-12-23, 11:28 PM
Last Post: sub
  Cannot access NextPVR server after internet service change tskdrk 5 2,812 2019-12-17, 01:12 AM
Last Post: sub
  External Access Broken boondawgy 5 2,242 2019-11-20, 01:56 AM
Last Post: ga_mueller
  Unable to communicate with server (IP Address) NudeNut 7 3,436 2019-10-30, 06:14 AM
Last Post: sub
  NextPVR, Web Server and Sub-titles henrikk 1 1,113 2019-06-04, 07:58 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode