Server Error in '/' Application.

Value cannot be null.
Parameter name: url

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.ArgumentNullException: Value cannot be null.
Parameter name: url

Source Error:


Line 9:          Session[Constants.SESSION_LANGUAGE] = Request.QueryString[Constants.SESSION_LANGUAGE];
Line 10:         string url = Request.ServerVariables["HTTP_REFERER"]; 
Line 11:         Response.Redirect(url); 
Line 12:          
Line 13:     }

Source File: c:\Sites\thegioiphimhd.com\httpdocs\changeLanguage.aspx.cs    Line: 11

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: url]
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +9114026
   System.Web.HttpResponse.Redirect(String url) +8
   changeLanguage.Page_Load(Object sender, EventArgs e) in c:\Sites\thegioiphimhd.com\httpdocs\changeLanguage.aspx.cs:11
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


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