title: ASP.NET 4.7 Forms Authentication Failure, Ticket supplied was invalid
body: <p>We are trying to change from TLS 1.0/1.1 to 1.2. The only protocol running is 1.2 and the .net and sql has been changed to support 1.2. It started giving us this error immediately when trying to log in.</p>
  
  <blockquote>
    <p>Event code: 4005 Event message: Forms authentication failed for the
    request. Reason: The ticket supplied was invalid.  Event time:
    6/1/2018 9:27:58 AM Event time (UTC): 6/1/2018 1:27:58 PM Event ID:
    ed7b05ef18c84be1b02ae683df1b6e79 Event sequence: 2 Event occurrence: 1
    Event detail code: 50201</p>
  </blockquote>
  
  <p>This is in my web.config</p>
  
  <pre><code>    &lt;authentication mode="Forms"&gt;
        &lt;forms loginUrl="~/Login/MainLoginPage.aspx" defaultUrl="/default.aspx" name="LoginAuthCookie" timeout="525600" /&gt;
      &lt;/authentication&gt;
    &lt;location path="Mobile/Customers/CustomerList.aspx"&gt;
      &lt;system.web&gt;
        &lt;httpRuntime requestValidationMode="2.0" /&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="Mobile/Customers/JDE/NoCust.aspx"&gt;
      &lt;system.web&gt;
        &lt;httpRuntime requestValidationMode="2.0" /&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="login/mainloginpage.aspx"&gt;
      &lt;system.web&gt;
        &lt;!--&lt;pages validateRequest="false" /&gt;--&gt;
        &lt;httpRuntime requestValidationMode="2.0" /&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
    &lt;location path="Applications"&gt;
      &lt;system.web&gt;
        &lt;httpRuntime requestValidationMode="2.0" /&gt;
      &lt;/system.web&gt;
    &lt;/location&gt;
  </code></pre>
  
  <p>Our testing page still works but our production does not, they have the same web.config pages.</p>
  
  <p>My question is does anyone know why this is happening and how to fix it? I have read up a few of the threads on this website, but they haven't been any help. Let me know if you need more information and thank you in advance for your responses.</p>