2017-07-30, 04:19 AM
I'm having an odd problem with the NextPVR website.
The error appears with both the Firefox and Internet Explorer
web browsers. When accessed using the IP address it works;
when accessed using my hostname it fails. Clearing the
Internet Explorer web cache & cookies had no effect.
Recompiling the web application had no effect.
How can this be fixed?
http://192.168.0.107:8866
redirects to
http://192.168.0.107:8866/modern/index.html
and works perfectly.
http://williams7:8866
redirects to
http://williams7:8866/Logon.aspx?ReturnU...fault.aspx
and produces the following error message:
Server Error in '/' Application.
Invalid URI: The hostname could not be parsed.
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.UriFormatException: Invalid URI: The hostname could not be parsed.
Source Error:
Line 60: if (!IsPostBack)
Line 61: {
Line 62: Logger.Info("URL-Before-Replace = " + Request.Url);
Line 63: string url = Request.Url.ToString().Replace(
Line 64: Request.Url.Scheme + Uri.SchemeDelimiter + Request.Url.Authority,
Source File: c:\Users\Public\NPVR\web\Logon.aspx.cs Line: 62
Stack Trace:
[UriFormatException: Invalid URI: The hostname could not be parsed.]
System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +218
System.Uri..ctor(String uriString) +16
System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration) +220
System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +422
System.Web.HttpRequest.get_Url() +64
N_EWA.Logon.Page_Load(Object sender, EventArgs e) in c:\Users\Public\NPVR\web\Logon.aspx.cs:62
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
System.Web.UI.Control.OnLoad(EventArgs e) +61
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2625
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2046.0
Attached is the web.log.
:confused:
The error appears with both the Firefox and Internet Explorer
web browsers. When accessed using the IP address it works;
when accessed using my hostname it fails. Clearing the
Internet Explorer web cache & cookies had no effect.
Recompiling the web application had no effect.
How can this be fixed?
http://192.168.0.107:8866
redirects to
http://192.168.0.107:8866/modern/index.html
and works perfectly.
http://williams7:8866
redirects to
http://williams7:8866/Logon.aspx?ReturnU...fault.aspx
and produces the following error message:
Server Error in '/' Application.
Invalid URI: The hostname could not be parsed.
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.UriFormatException: Invalid URI: The hostname could not be parsed.
Source Error:
Line 60: if (!IsPostBack)
Line 61: {
Line 62: Logger.Info("URL-Before-Replace = " + Request.Url);
Line 63: string url = Request.Url.ToString().Replace(
Line 64: Request.Url.Scheme + Uri.SchemeDelimiter + Request.Url.Authority,
Source File: c:\Users\Public\NPVR\web\Logon.aspx.cs Line: 62
Stack Trace:
[UriFormatException: Invalid URI: The hostname could not be parsed.]
System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +218
System.Uri..ctor(String uriString) +16
System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration) +220
System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor) +422
System.Web.HttpRequest.get_Url() +64
N_EWA.Logon.Page_Load(Object sender, EventArgs e) in c:\Users\Public\NPVR\web\Logon.aspx.cs:62
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
System.Web.UI.Control.OnLoad(EventArgs e) +61
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2625
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2046.0
Attached is the web.log.
:confused: