NextPVR Forums

Full Version: Attempting to hit login page inside local network fails
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My NextPVR server is at IP address 192.168.1.50 on the LAN and I allow access to NEWA without logging in within the LAN. If I type either http://192.168.1.50:8866/login.aspx or http://192.168.1.50:8866/login2.aspx into my browser, it fails, trying to redirect the browser to Logon.aspx.

[ATTACHMENT NOT FOUND]

Using a URL that goes directly to the Guide or something else works fine. While I know that I don't need to login when I'm on my LAN, I was surprised the URL redirection fails the way it does. Also, externally I can login fine - the pages work as expected.

I noticed this for the first time with the latest NextPVR release but figured it was one of the problems with integrating 1.25 and the new mobile interface, but it may have existed before that. It still occurs with 1.26.
Mine does not do a redirect at all. http://192.168.1.50:8866/login.aspx (with an i) does not work but typing in http://192.168.1.50:8866/logon.aspx (with an o) works
http://192.168.1.50:8866/logon.aspx works for me too, but the redirect is simply to logon.aspx only... no other portion of the URL is included so it fails.

When you say that the login.aspx doesn't work for you, do you mean you get a 404 error or something else? Login.aspx is included in the web folder so it should do something if the file exists.
The web.log shows the following:
2012-08-27 16:09:00.343 [INFO][18] Checking default login page configuration setting....
2012-08-27 16:09:00.367 [INFO][18] authentication section of web.config found.
2012-08-27 16:09:00.367 [INFO][18] Default login configuration setting and web.config do not match.....updating web.config and redirecting to new setting
2012-08-27 16:09:00.507 [INFO][18] web.config updated and now redirecting to: //logon.aspx
2012-08-27 16:09:00.648 [INFO][18] ********************************************
2012-08-27 16:09:00.648 [INFO][18] * *
2012-08-27 16:09:00.648 [INFO][18] * *
2012-08-27 16:09:00.648 [INFO][18] * NEWA Application Ending......Closing DB *
2012-08-27 16:09:00.648 [INFO][18] * *
2012-08-27 16:09:00.648 [INFO][18] * *
2012-08-27 16:09:00.648 [INFO][18] ********************************************
Ah, right you are. I get an "IE cannot display this page". It does not attempt a redirect. I have to run out but I'll look into it later unless UJB beats me to it.

OT:

When are we going to have an NextPVR Louisville Chapter meet? Big Grin I think there are what, three of us? (Although I can't remember who the third is.)
NM, found the issue:

Delete the "/" in line 140 of Login.aspx.cs:

Code:
string redirectUrl = Request.ApplicationPath + "[B][color=#FF0000]/[/color][/B]logon.aspx";

Or replace it with the attached file.
Yep, that seemed to take care of it. Thanks!
With release 1.26 of NEWA the login.aspx and login2.aspx pages are now obsolete.... they will be physically removed at some point in the future. You want to use logon.aspx. It is a new unified access page.
Ok, thanks. I simply had the URLs saved in my browser's auto-complete history. I started typing the IP, the URL popped up and I clicked it, expecting it to work. When it didn't internally but did externally I thought that was odd and that you might want to know.

I'll update my bookmarks with the new unified logon page.