title: Why is my json file not found?
body: <p>I have a json file in a Content folder within my asp.net project:</p>
  
  <pre><code>&lt;projectName&gt;
      \Content
          NBCCJr.json
  </code></pre>
  
  <p>...and the code to access it:</p>
  
  <pre><code>$.getJSON('~/Content/NBCCJr.json', function (data) {
      $.each(data, function(i, dataPoint) {
          // Bla
        });
    });
  )
  </code></pre>
  
  <p>...but nothing happens when the code is called; the browser console says, "Failed to load resource: the server responded with a status of 404 (Not Found)"</p>
  
  <p>Why is it not found? Isn't "tilde whack filename" the correct route to the file?</p>
  
  <h2>UPDATE</h2>
  
  <p>I also tried it with the "whacks" backwards:</p>
  
  <pre><code>$.getJSON('~\Content\NBCCJr.json', function (data) {
  </code></pre>
  
  <p>...and got the same result ("<em>Failed to load resource: the server responded with a status of 404 (Not Found)</em>")</p>
  
  <h2>UPDATE 2</h2>
  
  <p>Then I tried it sans a prepended whack thusly:</p>
  
  <pre><code>$.getJSON('Content/NBCCJr.json', function (data) {
  </code></pre>
  
  <p>...and I get this ambiguous message in the console:</p>
  
  <pre><code>*GET http://localhost:9702/Content/NBCCJr.json 404 (Not Found) jquery.js:8724
  XHR finished loading: "http://localhost:9702/Content/NBCCJr.json".*
  </code></pre>
  
  <p>So it was not found and yet loaded anyway?</p>
  
  <h2>UPDATE 3</h2>
  
  <p>When I attempted to navigate to the file in the browser by changing:</p>
  
  <pre><code>http://localhost:9702/Default.cshtml
  </code></pre>
  
  <p>...to:</p>
  
  <pre><code>http://localhost:9702/Content/NBCCJr.json
  </code></pre>
  
  <p>I got an informative WSOD message from Vint Cerf, Tim Berners-Lee, and/or Al Gore saying:</p>
  
  <p><em>HTTP Error 404.3 - Not Found
  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.</em></p>
  
  <h2>UPDATE 4</h2>
  
  <p>Thanks to JAM, it is now working. </p>
  
  <p>I had to add this to Web.Config:</p>
  
  <pre><code>  &lt;system.webServer&gt;
      &lt;staticContent&gt;
        &lt;mimeMap fileExtension=".json" mimeType="application/json" /&gt;
      &lt;/staticContent&gt;
    &lt;/system.webServer&gt;
  </code></pre>