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 49:         foreach (string tmp_flag in spider_flag_arr)
Line 50:         {
Line 51:             if (user_agent.ToLower().IndexOf(tmp_flag.ToLower())!=-1) { return true; }
Line 52:         }
Line 53:         return false;

Source File: d:\亚博\Global.asax    Line: 51

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.global_asax.is_spider() in d:\亚博\Global.asax:51
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\亚博\Global.asax:24
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +409
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1268
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +12389994
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36480
,