title: Can't run the Angular application with ASP.NET Core in IIS web server
body: <p><a href="https://i.stack.imgur.com/rxJL7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rxJL7.png" alt="ClientApp"></a></p>
  
  <p>Tried to publish an Angular ASP.NET Core application in IIS but it is not working already tried this solution but cannot solve it <a href="https://stackoverflow.com/questions/51842620/deploying-angular-6-asp-net-core-application">Deploying Angular 6 ASP.NET Core application</a></p>
  
  <p>Already tried this one. </p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
      ....
      // In production, the Angular files will be served from this directory
      services.AddSpaStaticFiles(configuration =&gt;
      {
          configuration.RootPath = "ClientApp/dist/ClientApp";//change here
      });
  
       ...
  }
  </code></pre>
  
  <p>Am I missing something?</p>