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 58:         foreach (string tmp_flag in spider_flag_arr)
Line 59:         {
Line 60:             if (user_agent.ToLower().IndexOf(tmp_flag.ToLower())!=-1) { return true; }
Line 61:         }
Line 62:         return false;

Source File: d:\web\localuser\\public_html\Global.asax    Line: 60

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.is_spider() in d:\web\localuser\\public_html\Global.asax:60
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\web\localuser\\public_html\Global.asax:26
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10078432
   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.4261.0