title: ASP.NET Core - Download .exe returns 404 error
body: <p>I have a ASP.NET core MVC application and in the wwwroot folder, I've added another folder called "Shaun" and in that folder I've dropped an exe to try and download:</p>
  
  <p><a href="https://i.stack.imgur.com/MSj0t.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MSj0t.png" alt="enter image description here"></a></p>
  
  <p>Now if I navigate to: <a href="http://localhost:PORT/Shaun/chromesetup.exe" rel="noreferrer">http://localhost:PORT/Shaun/chromesetup.exe</a> I get a 404 error. I've tried adding the Handler below but this doesn't work.</p>
  
  <pre><code> &lt;add name="Client exe" path="*.exe" verb="*" modules="StaticFileModule" resourceType="File" /&gt;
  </code></pre>
  
  <p>Extra info: The reason I need to do this is because I have a client application that connects to this website, that client application is packaged using ClickOnce and gets dropped into the wwwroot of the website, this previously worked using MVC (pre Core) and still does, but doesn't with core. </p>
  
  <p>How do I fix this?</p>