Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 404.3 Not found

I am going through this tutorial. I have this setup as an MVC4 project. This is the first project I made using Vs 2013.

I am on the step when I collect the json from phones.json. I get the error.

HTTP Error 404.3 -Not found
The page you are requesting cannot be served because of extension configuration.
If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Also here is my call to the json file

$http.get('Data/Phones/phones.json').success(function (data) {
     $scope.phones = data;
})

and here is an image of my folder structure

enter image description here

like image 782
dan_vitch Avatar asked Nov 08 '13 19:11

dan_vitch


People also ask

How do I fix HTTP Error 404.3 Not Found?

To Overcome “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.” Error.


1 Answers

Add this to the project's web.config:

<system.webServer>
    <staticContent>
        <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
</system.webServer>
like image 107
tasseKATT Avatar answered Oct 02 '22 09:10

tasseKATT