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 54:             
Line 55:             //faccio il detect della lingua del browser
Line 56:             string Lang = Request.UserLanguages[0];
Line 57:             if (Lang != "it-IT")
Line 58:                 HttpContext.Current.Session["CultureInfo"] = "en-US";

Source File: d:\inetpub\webs\arscomunicandicom\Global.asax    Line: 56

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\inetpub\webs\arscomunicandicom\Global.asax:56
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10081708
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +165
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1126
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +297
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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