title: ASP.Net MVC WebSecurity.InitializeDatabaseConnection return error
body: <p>whenever this line execute <code>WebSecurity.InitializeDatabaseConnection</code> then it is giving error "Connection string "Data Source=BBATRIDIP\SQLSERVER2008R2;Initial Catalog=test;User ID=sa,password=test#" was not found."</p>
  
  <p>again <code>LazyInitializer.EnsureInitialized</code> return error "An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll but was not handled in user code Additional information: Exception has been thrown by the target of an invocation."</p>
  
  <p>anyone tell me where i made the mistake.
  my <code>WebSecurity.InitializeDatabaseConnection()</code> code look like                     <code>WebSecurity.InitializeDatabaseConnection(@"Data Source=BBATRIDIP\SQLSERVER2008R2;Initial Catalog=test;User ID=sa,password=test#", "UserProfile", "UserId", "UserName", autoCreateTables: true);</code></p>
  
  <p>thanks</p>
  
  <p>this is how my connection string look like in web.config</p>
  
  <pre><code>  &lt;connectionStrings&gt;
      &lt;add name="DefaultConnection" connectionString="Data Source=BBATRIDIP\SQLSERVER2008R2;Initial Catalog=test;User ID=sa,password=tintin11#" providerName="System.Data.SqlClient" /&gt;
    &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>but still getting error. any idea?</p>