Visual Studio, JSON + Failed to load resource: 404

Recommended Posts

This one was obscure for me, I set up Visual Studio as normal, and downloaded Phaser (or PIXI btw) as normal. But when I ran it, I would always get:

Failed to load resource: the server responded with a status of 404 (Not Found)


With regards to the JSON file of my Sprite Sheet. 

In Visual Studio, I need to double click on web.config and then enter these lines:

<configuration>  <system.web>    <compilation debug="true" targetFramework="4.5" />    <httpRuntime targetFramework="4.5" />  </system.web>  <system.webServer>    <staticContent>      <mimeMap fileExtension=".json" mimeType="application/json" />    </staticContent>  </system.webServer></configuration>

I have no idea what is happening here, but I burned 6 hours on it. Hopefully this will show up on a google result for someone else. Maybe its my browser settings or whatever but the point is, that it works!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.