title: ASP.NET MVC Publish Website
body: <p>I am trying to publish an ASP.NET MVC website in IIS.</p>
  
  <p>When I try to attach the database from the published website to SQL Server, it always attaches the ASP.NET MVC solution's database so I can't manage the roles for users on the published website's database.</p>
  
  <p>For example, my solution is on drive <code>D:</code> and I copy my published website to <code>C:\inetpub\wwwroot</code> and add it to IIS. After that I try to attach the database from <code>C:\inetpub\wwwroot\...\App_Data</code> to SQL Server but it always attaches the database from <code>D:\test\App_Data</code></p>
  
  <p>I use <code>File_System</code> to publish my website.</p>