title: HTTP Error 500.24 - Internal Server Error : system.web/identity@impersonate is set to true
body: <p>I created an ASP.NET web application MVC Core 2.2 project. Then I ran it in IIS Express. But I received the following error:</p>
  
  <blockquote>
    <p>HTTP Error 500.24 - Internal Server Error An ASP.NET setting has been
    detected that does not apply in Integrated managed pipeline mode.</p>
    
    <p>Most likely causes: system.web/identity@impersonate is set to true.</p>
    
    <p>Things you can try: If the application supports it, disable client
    impersonation. If you are certain that it is OK to ignore this error,
    it can be disabled by setting
    system.webServer/validation@validateIntegratedModeConfiguration to
    false.</p>
  </blockquote>
  
  <p>This is my lunchSetting.json code:</p>
  
  <pre><code>{
    "iisSettings": {
      "windowsAuthentication": true,
      "anonymousAuthentication": true,
      "iisExpress": {
        "applicationUrl": "http://localhost:50764",
        "sslPort": 0
      }
    },
    "profiles": {
      "IIS Express": {
        "commandName": "IISExpress",
        "launchBrowser": true,
        "launchUrl": "http://localhost:50764",
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        }
      },
      "WebApplication2": {
        "commandName": "Project",
        "launchBrowser": true,
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        },
        "applicationUrl": "https://localhost:5001;http://localhost:5000"
      }
    }
  }
  
  </code></pre>