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 237:        Sprachcmd.Connection = SprachConn
Line 238:        Sprachcmd.CommandText = "Select * From  " + x + " Where Deutsch = '" + Deutsch + "' "
Line 239:        SprachReader = Sprachcmd.ExecuteReader
Line 240:
Line 241:        bMerker = False

Source File: C:\inetpub\wwwroot\Classic\App_Code\CL.vb    Line: 239

Stack Trace:


[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.OleDb.OleDbConnection.CheckStateOpen(String method) +1224763
   System.Data.OleDb.OleDbCommand.ValidateConnection(String method) +24
   System.Data.OleDb.OleDbCommand.ValidateConnectionAndTransaction(String method) +18
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +51
   System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +110
   System.Data.OleDb.OleDbCommand.ExecuteReader() +11
   CL.getSprachen(String Deutsch, String Sprachkennzeichen) in C:\inetpub\wwwroot\Classic\App_Code\CL.vb:239
   Mitteilung.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\Classic\Mitteilung.aspx.vb:129
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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