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 40:       Rpr_ProType.DataBind();
Line 41:       strSql = "SELECT  TypeName FROM   Web_ProType where IsLock=0 and 1=1 and id=" + strID + " order by sort,id";
Line 42:       titleTxt.InnerText = Shove._Data.MsSQL.ExecuteScalar(strSql).ToString();
Line 43:     }
Line 44:     /// <summary>

Source File: d:\wwwroot\KingTairIII\Products.aspx.cs    Line: 42

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Products.ProType() in d:\wwwroot\KingTairIII\Products.aspx.cs:42
   Products.Page_Load(Object sender, EventArgs e) in d:\wwwroot\KingTairIII\Products.aspx.cs:22
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3047


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