title: WebSecurity.InitializeDatabaseConnection method can be called only once
body: <p>I'm trying Windows Azure to host an MVC4 web application.
  I've created a test app, using VS2012 MVC4 internet application template and added a custom Model and Controller to it.</p>
  
  <p>I've published it on Azure and managed to get 'update-database' apply migrations to the Azure Database.</p>
  
  <p>When i try the app locally, but using the Azure SQL database, it works fine.
  I can login/register and use my test controller.</p>
  
  <p>When i try the app online, i can use the test controller but login or register links give the following exception:</p>
  
  <pre><code>Server Error in '/' Application.
  
  The "WebSecurity.InitializeDatabaseConnection" method can be called only once.
  
  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: The "WebSecurity.InitializeDatabaseConnection" method can be called only once.
  
  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: 
  
  
  [InvalidOperationException: The "WebSecurity.InitializeDatabaseConnection" method can be called only once.]
     WebMatrix.WebData.WebSecurity.InitializeMembershipProvider(SimpleMembershipProvider simpleMembership, DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean createTables) +123
     WebMatrix.WebData.WebSecurity.InitializeProviders(DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +51
     WebMatrix.WebData.WebSecurity.InitializeDatabaseConnection(String connectionStringName, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +52
     MembershipTest2.Filters.SimpleMembershipInitializer..ctor() +193
  </code></pre>
  
  <p>Do you have any idea where that comes from ?
  If i debug (the local version), this method is only called once.</p>
  
  <p>Thanks.</p>