Jump to content

Visual Studio, JSON + Failed to load resource: 404


clark
 Share

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!
 

Link to comment
Share on other sites

  • 5 months later...
  • 3 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...