IIS Webapi .NET 4.5 406 mime 类型错误

IIS Webapi .NET 4.5 406 mime 类型错误

我们有一个在 IIS 7.5 上运行的 .NET WEBAPI,它将按设计运行 1 到 2 周,然后 Web API 站点开始提供

406 - Client browser does not accept the MIME type of the requested page.
The page you are looking for cannot be opened by your browser because it has a file name extension that your browser does not accept.

唯一能解决这个问题的方法是使用完全相同的代码目录重新创建网站,但 1 - 2 周后仍然会出现相同的 406 错误。有人遇到过这个问题吗?

相关内容