xml 如何解决 HTTP 错误 404.8?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14059355/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I resolve HTTP Error 404.8?
提问by Robin
We recently moved servers and now the flash that did work at one time does not work because it doesn't recognize the xml files. Here is the error in detail:
我们最近移动了服务器,现在曾经工作过的闪存不起作用,因为它无法识别 xml 文件。这是错误的详细信息:
Server Error in Application
Internet Information Services 7.5 Error Summary HTTP Error 404.8 - Not Found The request filtering module is configured to deny a path in the URL that contains a hiddenSegment section. Detailed Error Information ModuleRequestFilteringModule NotificationBeginRequest HandlerStaticFile Error Code0x00000000 Requested URLhttp://obscured.xml Physical PathD:\home\obscured.xml Logon MethodNot yet determined Logon UserNot yet determined
回答by Kami
The issue is caused by IIS protecting the file you are requesting.
该问题是由 IIS 保护您请求的文件引起的。
IIS by default sets a filter to deny requests to files with certain names such as app_data, binetc to protect web applications. This is done via the hidden segments control in IIS. Your app seems to be affected by this.
默认情况下,IIS 设置过滤器以拒绝对具有特定名称(例如等)的文件的请求app_data,bin以保护 Web 应用程序。这是通过 IIS 中的隐藏段控件完成的。您的应用似乎受此影响。
Ideally you should change the name of the file you are requesting.
理想情况下,您应该更改您请求的文件的名称。
However, if you cannot do so then see the article herefor steps on how to remove it.
回答by Daniel Dyson
In my case, I had an application that had a business object called a bin. Can you guess what happened? The url for my BinController was http://localhost:6537/bin/index
就我而言,我有一个应用程序,其中包含一个名为 bin 的业务对象。你能猜到发生了什么吗?我的 BinController 的 url 是http://localhost:6537/bin/index
Clearly, RequestFiltering had an entry denying access to the bin folder, so the request was blocked before it even got to the MVC routing engine.
显然,RequestFiltering 有一个条目拒绝访问 bin 文件夹,因此该请求甚至在到达 MVC 路由引擎之前就被阻止了。
I simply renamed my controller to BinsController and http://localhost:6537/bins/indexworked just fine.
我只是将我的控制器重命名为 BinsController 并且http://localhost:6537/bins/index工作得很好。

