如何解决HTTP错误404.8?

时间:2022-11-29 13:25:19

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 

2 个解决方案

#1


17  

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, bin etc 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 here for steps on how to remove it.

但是,如果您不能这样做,请参阅此处的文章,了解有关如何删除它的步骤。

#2


1  

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/index worked just fine.

我只是将我的控制器重命名为BinsController,http:// localhost:6537 / bins / index工作正常。

#1


17  

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, bin etc 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 here for steps on how to remove it.

但是,如果您不能这样做,请参阅此处的文章,了解有关如何删除它的步骤。

#2


1  

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/index worked just fine.

我只是将我的控制器重命名为BinsController,http:// localhost:6537 / bins / index工作正常。