Server Error in '/' Application.

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

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 connecting.

Source Error:


Line 618:            Finally
Line 619:                DBcode.myConnection1.Close()
Line 620:                DBcode.myConnection1.Open()
Line 621:            End Try
Line 622:        End If

Source File: E:\AADATA\WEB\NT\peopleDetails.aspx.vb    Line: 620

Stack Trace:


[InvalidOperationException: The connection was not closed. The connection's current state is connecting.]
   System.Data.ProviderBase.DbConnectionBusy.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +20
   System.Data.SqlClient.SqlConnection.Open() +258
   peopleDetails..ctor() in E:\AADATA\WEB\NT\peopleDetails.aspx.vb:620
   ASP.peopledetails_aspx..ctor() in E:\AADATA\WEB\NT\peopleDetails.aspx.vb:912304
   __ASP.FastObjectFactory_app_web_peopledetails_aspx_cdcab7d2_gbdtsrep.Create_ASP_peopledetails_aspx() +65
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +138
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +50
   System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +425
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +263


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975