clark Posted February 9, 2014 Share Posted February 9, 2014 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! jpdev, tarnos12 and Massemassimo 3 Link to comment Share on other sites More sharing options...
rich Posted February 9, 2014 Share Posted February 9, 2014 So basically the http server built into VS doesn't support serving json files? That's brilliant, well done Microsoft At least you found a fix! Massemassimo 1 Link to comment Share on other sites More sharing options...
Massemassimo Posted July 21, 2014 Share Posted July 21, 2014 Thanks a lot, I too wasted quite some time (and annoyed my girlfriend hissing "it won't parse my json, why won't it parse my json?!" for a while). clark 1 Link to comment Share on other sites More sharing options...
owen Posted August 5, 2014 Share Posted August 5, 2014 This does indeed solve it Link to comment Share on other sites More sharing options...
Recommended Posts