title: Why is my MVC 5 application trying to access Local DB
body: <p>I have been developing an MVC 5 application on my local machine, and having just tried to public a test version to Azure, I have found this new error.  My connection strings have no reference to a LocalDB, and I can't find anything in my code that wants to create or access a LocalDB.  Yet I am receiving an error related to an attempt to create/access localDB:</p>
  
  <blockquote>
    <p>The connection string specifies a local Sql Server Express instance using a database location within the application's App_Data directory</p>
  </blockquote>
  
  <p>Originally the project had forms authentication, but I later changed to AspNetIdentity framework.  I'm concerned I've got some residue from the initial template with forms authentication that I cannot find despite combing the application several times and googling at length.</p>
  
  <p>Here are the connection strings.  There are no others.  At least using a find function in Visual studio to look for "connectionString" - this is all:</p>
  
  <pre><code>&lt;add name="elmah" connectionString="Data Source=tcp:xxxxx.database.windows.net,1433;Initial Catalog=xxxxx;User ID=xxxxx@xxxxx;Password=xxxxx" providerName="System.Data.SqlClient" /&gt;
  &lt;add name="IdentityDbContext" connectionString="Data Source=tcp:xxxxx.database.windows.net,1433;Initial Catalog=xxxxx;User ID=xxxxx@xxxxx;Password=xxxxx" providerName="System.Data.SqlClient" /&gt;
  &lt;add name="ORLODbContext" connectionString="metadata=res://*/ORLODbContext.csdl|res://*/ORLODbContext.ssdl|res://*/ORLODbContext.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;Data Source=tcp:xxxxx.database.windows.net,1433;Initial Catalog=xxxxx;User ID=xxxxx@xxxxx;Password=xxxxx&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  </code></pre>
  
  <p>My googling has led me to add these other features to the web.config.  In the <code>system.web</code>:</p>
  
  <pre><code>&lt;authentication mode="None" /&gt;
  &lt;membership&gt;
    &lt;providers&gt;
      &lt;clear /&gt;
    &lt;/providers&gt;
  &lt;/membership&gt;
  &lt;profile&gt;
    &lt;providers&gt;
      &lt;clear /&gt;
    &lt;/providers&gt;
  &lt;/profile&gt;
  </code></pre>
  
  <p>Here, my googling also suggests I should add:</p>
  
  <pre><code>&lt;roleManager&gt;
    &lt;providers&gt;
      &lt;clear /&gt;
    &lt;/providers&gt;
  &lt;/roleManager&gt;
  </code></pre>
  
  <p>But if I do this, I get the error: </p>
  
  <blockquote>
    <p>Default Role Provider could not be found.</p>
  </blockquote>
  
  <p>Seeing as I don't want one, it seems, I thought maybe I don't need this bit.  But please correct me if I'm wrong.</p>
  
  <p>Is there anything else I should look at?</p>