Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 11: End If
Line 12:
Line 13: If Request.UrlReferrer.ToString.Contains("lang=") Then
Line 14: Response.Redirect(Request.UrlReferrer.ToString.Replace(IIf(Session("lang") = "ar", "lang=en", "lang=ar"), "lang=" & Session("lang")))
Line 15: Else
[NullReferenceException: Object reference not set to an instance of an object.]
cms_Home_changeLanguage.Page_Load(Object sender, EventArgs e) in C:\HostingSpaces\aldossary\aldossary-group.com\wwwroot\Site\changeLanguage.aspx.vb:13
System.Web.UI.Control.OnLoad(EventArgs e) +131
System.Web.UI.Control.LoadRecursive() +65
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
Version Information: Microsoft .NET Framework Version:2.0.50727.9044; ASP.NET Version:2.0.50727.9047