Server Error in '/' Application.

Invalid URI: The format of the URI could not be determined.

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 format of the URI could not be determined.

Source Error:


Line 6:  		{
Line 7:  			string sourcelink = Request.QueryString[0].Replace("404;","");
Line 8:  			System.Uri sourceUrl = new System.Uri(sourcelink);
Line 9:  			
Line 10: 			//for(int i = 0;i < sourceUrl.Segments.Length; i++)

Source File: E:\Websites\DNN_ISRA\404.aspx.cs    Line: 8

Stack Trace:


[UriFormatException: Invalid URI: The format of the URI could not be determined.]
   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +8520894
   Custom404.FourOhFour.Page_Load(Object sender, EventArgs e) in E:\Websites\DNN_ISRA\404.aspx.cs:8
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0