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 2695:            finally
Line 2696:            {
Line 2697:                dr.Close();
Line 2698:            }
Line 2699:            return str;

Source File: d:\website\www.aitg.cn2\App_Code\jss_fc\JSSMethods.cs    Line: 2697

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   jss_fc.JSSMethods.mt_head(String tagename, OperateDB con, String id, String[] param) in d:\website\www.aitg.cn2\App_Code\jss_fc\JSSMethods.cs:2697
   jss_fc.JSSMethods.TAGES_SINGLE(String tagename, OperateDB con, String[] param, String[] idsparam) in d:\website\www.aitg.cn2\App_Code\jss_fc\JSSMethods.cs:50
   news.Page_Load(Object sender, EventArgs e) in d:\website\www.aitg.cn2\news.aspx.cs:58
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +74
   System.Web.UI.Control.LoadRecursive() +120
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2847


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