title: Custom user authentication ASP.net MVC not working on server
body: <p>I have made use of a tutorial in a project and I'm running into an issue where user roles do not update on the server. Locally everything works fine but when published to an Azure server the roles do not update. I made use of this tutorial: 
  <a href="https://www.c-sharpcorner.com/article/custom-authentication-with-asp-net-mvc/" rel="nofollow noreferrer">Custom-Authentication-asp-net-MVC</a></p>
  
  <p>Here is my web.config:</p>
  
  <pre><code>&lt;membership defaultProvider="CustomMembership"&gt;
    &lt;providers&gt;
      &lt;clear /&gt;
      &lt;add name="CustomMembership" type="YouAndMeRealty.Authentication.CustomMembership" /&gt;
    &lt;/providers&gt;
  &lt;/membership&gt;
  &lt;roleManager defaultProvider="CustomRole" enabled="true" &gt;
    &lt;providers&gt;
      &lt;clear /&gt;
      &lt;add name="CustomRole" type="YouAndMeRealty.Authentication.CustomRoles" /&gt;
    &lt;/providers&gt;
  &lt;/roleManager&gt;
  </code></pre>
  
  <p>I've read online that it may be that I am missing something in my web.config, but I am very inexperienced in user management. Please can anyone help.</p>