title: Request of ".geojson" file gives "HTTP Error 404.3 - Not found" - add a MIME map
body: <p>I'm trying to load a <code>geojson</code> file into my <code>.net5 MVC</code> app and gives me this error:</p>
  <blockquote>
  <p>&quot;The page you are requesting cannot be served because of the extension
  configuration. If the page is a script, add a handler. if the file
  should be downloaded, add a MIME map&quot;</p>
  </blockquote>
  <p>My code:</p>
  <pre><code>$.getJSON(&quot;@Url.Content(&quot;~/path/to/file&quot;)&quot;);
  </code></pre>
  <p>I've tried a few fixes I found on the internet but with no luck. I prefer not to install anything on the server (Windows features) but have it configured in <code>Web.config</code>.</p>
  <p>What I've tried:</p>
  <pre><code>&lt;system.webServer&gt;
    &lt;staticContent&gt;  
      &lt;mimeMap fileExtension=&quot;.geojson&quot; mimeType=&quot;application/json&quot; /&gt;
      &lt;!-- alternate tried the mimetype below --&gt;
      &lt;mimeMap fileExtension=&quot;.geojson&quot; mimeType=&quot;application/vnd.geo+json&quot; /&gt;
    &lt;/staticContent&gt;
  &lt;/system.webServer&gt;
  </code></pre>