title: Connection String of Membership is Problem
body: <p>Connection String:</p>
  
  <pre><code>data source=mssql2008.chaiyohosting.com;Integrated
  Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Invalid value for key 'attachdbfilename'.
  
  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: Invalid value for key 'attachdbfilename'.
  </code></pre>
  
  <p>Source Error: </p>
  
  <pre><code>Line 20:     protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
  Line 21:     {
  Line 22:         if (Membership.ValidateUser(Login1.UserName, Login1.Password))
  Line 23:         {
  Line 24:             e.Authenticated = true;
  
  Source File: c:\inetpub\vhosts\vcantop.com\httpdocs\Default.aspx.cs    Line: 22 
  </code></pre>
  
  <p>Stack Trace: </p>
  
  <pre><code>[ArgumentException: Invalid value for key 'attachdbfilename'.]
     System.Data.SqlClient.SqlConnectionString.VerifyLocalHostAndFixup(String&amp; host, Boolean enforceLocalHost, Boolean fixup) +811400
     System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +2207
     System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +24
     System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions&amp; userConnectionOptions) +200
     System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +62
     System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4
     System.Data.SqlClient.SqlConnection..ctor(String connectionString) +24
     System.Web.DataAccess.SqlConnectionHolder..ctor(String connectionString) +54
  
  [ArgumentException: An error occurred while attempting to initialize a System.Data.SqlClient.SqlConnection object. The value that was provided for the connection string may be wrong, or it may contain an invalid syntax.
  Parameter name: connectionString]
     System.Web.DataAccess.SqlConnectionHolder..ctor(String connectionString) +136
     System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +134
     System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32&amp; status, String&amp; password, Int32&amp; passwordFormat, String&amp; passwordSalt, Int32&amp; failedPasswordAttemptCount, Int32&amp; failedPasswordAnswerAttemptCount, Boolean&amp; isApproved, DateTime&amp; lastLoginDate, DateTime&amp; lastActivityDate) +815
     System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String&amp; salt, Int32&amp; passwordFormat) +105
     System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42
     System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78
     System.Web.Security.Membership.ValidateUser(String username, String password) +46
     _Default.Login1_Authenticate(Object sender, AuthenticateEventArgs e) in c:\inetpub\vhosts\vcantop.com\httpdocs\Default.aspx.cs:22
     System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +108
     System.Web.UI.WebControls.Login.AttemptLogin() +115
     System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
     System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
     System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118
     System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166
     System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
     System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
     System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
  </code></pre>
  
  <hr>
  
  <p>What's Wrong?</p>