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 1280:        catch
Line 1281:        {
Line 1282:            throw;
Line 1283:        }
Line 1284:        finally

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

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.SelectAllhaber(OleDbCommand komut) in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\App_Code\DAL\ClassDAL.cs:1282
   haber.SelectAll() in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\App_Code\DAL\haber.cs:288
   BlogDetay.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\aktanmarble.com.tr\httpdocs\BlogDetay.aspx.cs:66
   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