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 1224:        Session["userVarsArray"] = userVariables;
Line 1225:
Line 1226:        string dtCulture = Request.UserLanguages[0];
Line 1227:        //If useCulture flag is false , we are not checking the browser culture.
Line 1228:        //If it's true ,we are setting the culture based on the client browser language.

Source File: e:\rsldctest\aspx\custommain1.aspx.cs    Line: 1226

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Custommain.CreateParamaterArray() in e:\rsldctest\aspx\custommain1.aspx.cs:1226
   Custommain.ParseLoginResult(String result) in e:\rsldctest\aspx\custommain1.aspx.cs:1102
   Custommain.ValidatePage() in e:\rsldctest\aspx\custommain1.aspx.cs:810
   Custommain.Page_Load(Object sender, EventArgs e) in e:\rsldctest\aspx\custommain1.aspx.cs:251
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   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.8974; ASP.NET Version:2.0.50727.8975