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 398:        };
Line 399:        DataSet ds_detail = DA.ReturnDataSetWithParameters("[USP_GETPRODUCTDETAIL]", sqlparam);
Line 400:        if (ds_detail.Tables.Count > 0)
Line 401:        {
Line 402:            ds = ds_detail;

Source File: c:\HostingSpaces\admin\editabletemplates.com\wwwroot\App_Code\BAL.cs    Line: 400

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   BAL.GetProductDetail(Int32 productid) in c:\HostingSpaces\admin\editabletemplates.com\wwwroot\App_Code\BAL.cs:400
   download_powerpoint_templates.BindDisplay(Int32 productid) in c:\HostingSpaces\admin\editabletemplates.com\wwwroot\download-word-templates.aspx.cs:51
   download_powerpoint_templates.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\admin\editabletemplates.com\wwwroot\download-word-templates.aspx.cs:31
   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