title: asp.net mvc authentication only works when debugging
body: <p>I have an asp.net mvc application that works fine under visual studio but when I publish it to the localhost, I'm unable to login.</p>
  
  <p>I already striped down the code and found that <code>MembershipService.ValidateUser(model.UserName, model.Password)</code> won't work but the next line <code>FormsService.SignIn(model.UserName, model.RememberMe)</code> works fine.</p>
  
  <p>On the web config I got the following:</p>
  
  <pre><code>&lt;membership defaultProvider="MySqlMembershipProvider"&gt;
    &lt;providers&gt;
      &lt;clear/&gt;
      &lt;add autogenerateschema="true"
               connectionStringName="ConnString"
               enablePasswordRetrieval="false"
               enablePasswordReset="true"
               requiresQuestionAndAnswer="false"
               requiresUniqueEmail="false"
               passwordFormat="Hashed"
               maxInvalidPasswordAttempts="5"
               minRequiredPasswordLength="6"
               minRequiredNonalphanumericCharacters="0"
               passwordAttemptWindow="10"
               passwordStrengthRegularExpression=""
               applicationName="/"
               name="MySqlMembershipProvider"
               type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/&gt;
      &lt;/providers&gt;
   &lt;/membership&gt;
   &lt;profile defaultProvider="MySqlProfileProvider"&gt;
     &lt;providers&gt;
       &lt;clear/&gt;
       &lt;add name="MySqlProfileProvider"
               type="MySql.Web.Profile.MySQLProfileProvider, MySql.Web, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"
               connectionStringName="ConnString" applicationName="/" autogenerateschema="true"/&gt;
      &lt;/providers&gt;
    &lt;/profile&gt;
    &lt;roleManager enabled="true" defaultProvider="MySqlRoleProvider"&gt;
      &lt;providers&gt;
        &lt;clear/&gt;
        &lt;add name="MySqlRoleProvider" autogenerateschema="true" connectionStringName="ConnString" applicationName="/"
               type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.3.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /&gt;
        &lt;/providers&gt;
     &lt;/roleManager&gt;
  </code></pre>
  
  <p>The ConnString is ok because other parts of the application work just fine (including the FormsService.SignIn).</p>
  
  <p>Where's the physical path where Visual Studio debug applications so I can compare Web.configs with the one on my localhost IIS?</p>