I'm trying to serve static files JSON files from my IIS 7.5 on my Windows 7 machine (localhost).
Having mapped the .JSON file extension to the StaticFileModule (under Handler Mappings), I am able to GET a file from a URL such as http://localhost/english.json but the file always comes up empty = Content-Length: 0.
A few more details: I've tried both "Integrated" and "Classic" managed pipline mode. I've added "application/x-javascript" as the MIME-type for .json files.
What else do I need to do to get this working?
The problem was with my definitions in Handler Mappings. They were not needed at all and once removed, I can now see receive the file and its content from the server. The definition under MIME Types is required however.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With