title: ASP.NET login control connection string error : Keyword not supported: 'metadata'
body: <p>I was working with normal connection until now and everything was smooth
  but now I have switched to data entity model and with new connection string, I am having this error... How can i keep my entity string for my data manipulation and use the regular conn string only for login control?</p>
  
  <pre><code>Keyword not supported: 'metadata'.
  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: Keyword not supported: 'metadata'.
  
  Source Error:
  
  An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
  
  Stack Trace:
  
  [ArgumentException: Keyword not supported: 'metadata'.]
     System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +5055124
     System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +98
     System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +64
     System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +24
     System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions&amp; userConnectionOptions) +150
     System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +59
     System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4
     System.Data.SqlClient.SqlConnection..ctor(String connectionString) +26
     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) +119
     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) +827
     System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String&amp; salt, Int32&amp; passwordFormat) +105
     System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +106
     System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60
     System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +129
     System.Web.UI.WebControls.Login.AttemptLogin() +127
     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) +125
     System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +167
     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) +5563
  </code></pre>
  
  <p>Connection string</p>
  
  <pre><code>&lt;connectionStrings&gt;
      &lt;add name="LoginDB" connectionString="Data Source=****;Initial Catalog=int422_113b16;User ID=****;Password=****" /&gt;
      &lt;add name="BlogEntities" connectionString="metadata=res://*/App_Code.BlogModel.csdl|res://*/App_Code.BlogModel.ssdl|res://*/App_Code.BlogModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source****;initial catalog=int422_113b16;user id=****;password=****;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>