Server Error in '/' Application.

Invalid attempt to call HasRows when reader is closed.

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.InvalidOperationException: Invalid attempt to call HasRows when reader is closed.

Source Error:


Line 7504:        if (strError == null)
Line 7505:        {
Line 7506:            if (_drpage.HasRows)
Line 7507:            {
Line 7508:

Source File: c:\inetpub\vhosts\reliablegifts.com\httpdocs\App_Code\USA\dynamicContent.cs    Line: 7506

Stack Trace:


[InvalidOperationException: Invalid attempt to call HasRows when reader is closed.]
   System.Data.SqlClient.SqlDataReader.get_HasRows() +2779914
   dynamicContent.LoadCatDescMetaBreadCrumb_CategoryPage_Can(Int32 intSiteId, Int32 intCatId, String& categoryName, String& categoryDescTop, String& categoryDescBottom, String& breadCrumb, String& pageTitle, String& pageMetaDesc, String& pageMetaKeyword, String& pageMetaAbstract, String& strErr) in c:\inetpub\vhosts\reliablegifts.com\httpdocs\App_Code\USA\dynamicContent.cs:7506
   Category.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\reliablegifts.com\httpdocs\canada\Category.aspx.cs:72
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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