Server Error in '/' Application.

The connection was not closed. The connection's current state is open.

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: The connection was not closed. The connection's current state is open.

Source Error:


Line 213:        {
Line 214:
Line 215:            throw;
Line 216:        }
Line 217:        finally

Source File: c:\inetpub\vhosts\kitap42.com\httpdocs\urunler-listele.aspx.cs    Line: 215

Stack Trace:


[InvalidOperationException: The connection was not closed. The connection's current state is open.]
   System.Data.ProviderBase.DbConnectionBusy.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +21
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +202
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +413
   System.Data.SqlClient.SqlConnection.Open() +128
   urun_listele.urunleriListeleKategoriID(Int32 sayi) in c:\inetpub\vhosts\kitap42.com\httpdocs\urunler-listele.aspx.cs:215
   urun_listele.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\kitap42.com\httpdocs\urunler-listele.aspx.cs:54
   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.3930.0