title: Error. An error occurred while processing your request
body: <p>Fairly simple question about connection strings using an ASP.Net MVC web application with a SQL server Database.</p>
  
  <p>I created a Web application which uses a database, using the default templates for an MVC 5 application using Visual studio 2014.</p>
  
  <p>I am moving my application over to a IIS and sql server express database (2014) and I see that the database my application uses is a localDB (has a .mdf extension) what I need to know is how to attach it to my SQL Server Express database. (The development Machine and the Server are separate machines)</p>
  
  <p>I have attached it to the server and have a login "IIS APPPOOL\DefaultAppPool" for my IIS to be able to use the server. Here I have granted the login read and write permission to the database "aspnet-owinTest-20140519094353" and my connection string in IIS is </p>
  
  <pre><code>Server=KEVIN-PC\SQLEXPRESS;Database=aspnet-owinTest-20140519094353;Integrated Security=true
  </code></pre>
  
  <p>The default connection string when building my application is:</p>
  
  <pre><code>&lt;add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-owinTest-20140519094353.mdf;Initial Catalog=aspnet-owinTest-20140519094353;Integrated Security=True" providerName="System.Data.SqlClient" /&gt;
  </code></pre>
  
  <p>If anyone can please give me a hand with this. My application simply throws an error </p>
  
  <blockquote>
    <p>Error.
    An error occurred while processing your request.</p>
  </blockquote>
  
  <p>This is the default MVC error.</p>
  
  <p>Also are there any ways where I can see what happened? As in a log of sorts, I checked in the IIS log and there did not seem to be any information that would help me. Would it be better for me to just have a login that used a Username/Password rather than using Windows Authentication?</p>