title: VS2019 MVC4 WebSite IIS Express Forms Authentication
body: <p>We are in the process of moving out our MVC4 web application from VS2013 that uses framework 4.0 and multiple other NuGet packages to VS2019.  I branched the code and mapped a new location for the conversion.</p>
  
  <p>I've managed to get everything to build.  The site uses Forms Authentication.  However, when I try to debug the site the IPrincipal is being set to a WidnowsIdentity, (my domain account), which would be needed to run IIS Express.  It's like as if IIS Express is just using the windows authentication from the Development Server settings for the logged in user as well.</p>
  
  <p>I have not changed anything with these settings, so both the Anonymous Authentication and Windows Authentication are both Enabled.  The Managed Pipeline Mode is Integrated.  Yet I never get to the logon page and it completely bypasses and sets the User to my domain </p>
  
  <p>Yet if I open the project VS2013 project it works as it always has.  I know that VS2019 makes a .vs folder for the applicationhost.config file.  I've messed around with that file and I'm still not able to get this to run.  </p>
  
  <p><strong>Update:</strong></p>
  
  <p>To provide a bit more information.  I hadn't noticed this before, but while debugging I noticed that for some reason it's trying to go to our accounts controller as it should, but it's looking for an action of Login.  We do not have an action called Login, but we do have a GET and POST LogOn.  </p>
  
  <p>I've checked the web.config file as well to ensure that it wasn't somehow changed and it's still ~/Account/LogOn.  I've searched the code for anything called Login.  </p>
  
  <p>I've even tried to change the loginUrl attribute for the forms authentication and it doesn't appear as though it's even reading that.</p>