Server Error in '/' Application.

selectObject 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.Exception: selectObject reference not set to an instance of an object.

Source Error:


Line 20:         public static void AddToLog(string _mess, LogType lt)
Line 21:         {
Line 22:             throw new Exception(lt + _mess);
Line 23:         }
Line 24:         #endregion        

Source File: d:\hst\stels-ukrain-com-ua_82ec9cb6\http\App_Code\MSSQL\LogError.cs    Line: 22

Stack Trace:


[Exception: selectObject reference not set to an instance of an object.]
   ASP_Mag.SQL.Classes.LogError.AddToLog(String _mess, LogType lt) in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\App_Code\MSSQL\LogError.cs:22
   ASP_Mag.SQL.Classes.MSSQL.Select.SelectInDataTable(String _NameStoredProcedure) in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\App_Code\MSSQL\Select.cs:31
   BaseObject.Load(Int32 id) in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\App_Code\BusinessObjects\BaseObject.cs:172
   Product.Load(Int32 id) in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\App_Code\BusinessObjects\Product.cs:322
   Page_ProductResponces.Page_Load(Object sender, EventArgs e) in d:\hst\stels-ukrain-com-ua_82ec9cb6\http\ProductResponces.aspx.cs:42
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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