Server Error in '/' Application.

ExecuteReader requires an open and available Connection. The connection's current state 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: ExecuteReader requires an open and available Connection. The connection's current state is closed.

Source Error:


Line 2551:        catch
Line 2552:        {
Line 2553:            throw;
Line 2554:        }
Line 2555:        finally

Source File: c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\App_Code\DAL\ClassDAL.cs    Line: 2553

Stack Trace:


[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.OleDb.OleDbConnection.CheckStateOpen(String method) +1560915
   System.Data.OleDb.OleDbCommand.ValidateConnection(String method) +29
   System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) +25
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +70
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +143
   ClassDAL.SelectAllslider(OleDbCommand komut) in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\App_Code\DAL\ClassDAL.cs:2553
   slider.SelectAll() in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\App_Code\DAL\slider.cs:208
   _Default.SliderGetir() in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\Default.aspx.cs:30
   _Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\Default.aspx.cs:13
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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