Server Error in '/' Application.

Not allowed to change the 'ConnectionString' property. 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: Not allowed to change the 'ConnectionString' property. The connection's current state is open.

Source Error:


Line 131:        {
Line 132:            string connString = db.GetConnectionString();
Line 133:            Conn.ConnectionString = connString;
Line 134:            try
Line 135:            {

Source File: c:\inetpub\wwwroot\crm.sinewave.co.in\Products\Taxbase\taxbase-faq.aspx.cs    Line: 133

Stack Trace:


[InvalidOperationException: Not allowed to change the 'ConnectionString' property. The connection's current state is open.]
   System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key) +6060523
   System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +93
   Products_Taxbase_TaxbaseFaq_New.FillDataforAutoComplete() in c:\inetpub\wwwroot\crm.sinewave.co.in\Products\Taxbase\taxbase-faq.aspx.cs:133
   Products_Taxbase_TaxbaseFaq_New.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\crm.sinewave.co.in\Products\Taxbase\taxbase-faq.aspx.cs:65
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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