Server Error in '/' Application.

Format of the initialization string does not conform to specification starting at index 86.

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.ArgumentException: Format of the initialization string does not conform to specification starting at index 86.

Source Error:


Line 36:     public void BindUser()
Line 37:     {
Line 38:         SqlConnection con = new SqlConnection(constr);
Line 39:         da = new SqlDataAdapter("spsms_UserType", con);
Line 40:         da.Fill(ds, "temp");

Source File: D:\Inetpub\vhosts\jims.in\httpdocs\sms\SMSIndex.aspx.cs    Line: 38

Stack Trace:


[ArgumentException: Format of the initialization string does not conform to specification starting at index 86.]
   System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) +1984
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +196
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +135
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +71
   System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +35
   System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +214
   System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key) +75
   System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +116
   System.Data.SqlClient.SqlConnection..ctor(String connectionString, SqlCredential credential) +55
   SMS_SMSIndex.BindUser() in D:\Inetpub\vhosts\jims.in\httpdocs\sms\SMSIndex.aspx.cs:38
   SMS_SMSIndex.Page_Load(Object sender, EventArgs e) in D:\Inetpub\vhosts\jims.in\httpdocs\sms\SMSIndex.aspx.cs:33
   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.4087.0