我目前正在开发一个 ASP.NET MVC4 网站,我正在尝试使用 date.js
包含对 JQuery Flot
的 javascript 时区支持。
date.js 的时区信息存储在没有扩展名的文本文件中(例如:tz/northamerica)。
当使用 Visual Studio Development Server 时,我可以毫无问题地获取我的任何时区文件,但是一旦使用 IIS 托管它,我就会收到以下错误:
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Most likely cause:
The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.
Things you can try:
If you want to serve this content as a static file, add an explicit MIME map.
我网站的其余部分运行良好,只有那些没有扩展名的文件导致了问题。
我对IIS配置很不熟悉,这里到底是什么问题?
最佳答案
看起来 you can patch 是 IIS 7.5 的问题.
关于.net - IIS 7.5 - 没有扩展名的文件导致错误 404.17,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16589603/