Server Error in '/' Application.

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 16:                 context.Response.Cookies("lang").Value = "eng"
Line 17:         End Select
Line 18:         Dim Refferer = context.Request.UrlReferrer.ToString
Line 19:         If Refferer.ToLowerSafe.Contains("logout") Then
Line 20:             context.Response.Redirect("~/")

Source File: C:\Inetpub\vhosts\eldorado.lv\httpdocs\Handlers\Lang.ashx    Line: 18

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Lang.ProcessRequest(HttpContext context) in C:\Inetpub\vhosts\eldorado.lv\httpdocs\Handlers\Lang.ashx:18
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975