title: Black page or 404 every request in Asp.NET core
body: <p>my Asp.NET Core project returns 404 with Postman or a blank page with a browser after every request.
  I'm using Asp.NET Core 1.1.2.
  I already tried to:</p>
  
  <ul>
  <li>clean the solution</li>
  <li>delete the .vs folder</li>
  <li>restore Visual Studio</li>
  <li>create a new project and copy every file (empty project works)</li>
  </ul>
  
  <p>Startup.cs, appsettings.json, web.config have not been edited.</p>
  
  <p>I have SSL enabled and HTTPS rewrite.</p>
  
  <p>This happenes on both IIS Express and the project directly.</p>
  
  <p>Routing:</p>
  
  <pre><code>app.UseMvc(routes =&gt; {
      routes.MapRoute(
          name: "default",
          template: "{controller=Home}/{action=Index}/{id?}");
  });
  </code></pre>
  
  <p>Log:</p>
  
  <ul>
  <li>Microsoft.AspNetCore.Routing.RouteBase:Debug: Request successfully matched the route with name 'default' and template '{controller=Home}/{action=Index}/{id?}'.</li>
  <li>Microsoft.AspNetCore.Mvc.Internal.MvcRouteHandler:Debug: No actions matched the current request</li>
  <li>Microsoft.AspNetCore.Builder.RouterMiddleware:Debug: Request did not match any routes.</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/KsOV0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KsOV0.png" alt="Chrome"></a></p>
  
  <p><a href="https://i.stack.imgur.com/cQSIC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cQSIC.png" alt="Postman"></a></p>