.net - IIS 7.5 - 没有扩展名的文件导致错误 404.17

标签 .net asp.net-mvc iis

我目前正在开发一个 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/

相关文章:

.net - MVC3项目升级到VS2012后出现AccessViolationException

iis - 使用 IIS 的 Web 服务器场?基本信息

asp.net - IIS 应用程序池不会在组托管服务帐户下启动

.net - 我应该在 dotnet 中使用哪种依赖注入(inject)技术?

.net - 将 NUnit 测试项目转换为 MS 测试

asp.net-mvc - ASP.NET MVC AJAX 与 HTML.ValidationMessageFor

css - IE9 无法通过 SSL 加载 CSS

.net - 为什么我的 .NET 类库中的所有引用都带有黄色感叹号?

c# - 在整个文件中进行多行正则表达式搜索

c# - 在 MVC4 中,如何将属于我的域模型的文件(图像)上传到 SQL Server?