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 181:                DataSet ds = DA.ReturnDataSetWithParameters("[USP_GETPRODUCTDETAIL]", sqlparam);
Line 182:                DataTable dt_date = null;
Line 183:                if (ds.Tables.Count > 0)
Line 184:                {
Line 185:                    if (ds.Tables[0].Rows.Count > 0)

Source File: c:\HostingSpaces\admin\editabletemplates.com\wwwroot\cart.aspx.cs    Line: 183

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   login.addtocart() in c:\HostingSpaces\admin\editabletemplates.com\wwwroot\cart.aspx.cs:183
   login.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\admin\editabletemplates.com\wwwroot\cart.aspx.cs:66
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1435


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