Can't serve files without extension because they "appear to be script" on IIS7.5

Posted by madd0 on Server Fault See other posts from Server Fault or by madd0
Published on 2012-03-26T14:19:21Z Indexed on 2012/03/26 17:32 UTC
Read the original article Hit count: 275

Filed under:
|

I created a certain number of static JSON files with no extension in a subfolder of my site. I want to use them for tests.

The problem is that IIS is refusing to serve them because :

HTTP Error 404.17 - Not Found

The requested content appears to be script and will not be served by the static file handler.

The folder is a subfolder of an ASP.NET application and I can't create an application just for it, neither can I change the parent application's application pool. Actually, I don't have access to the IIS configuration other than through the web.config file in the folder in question.

I assume there must be a way to get a web server to serve static files, right?

© Server Fault or respective owner

Related posts about iis

Related posts about iis7.5