2012-12-27 251 views
11

我們最近移動了服務器,現在一次工作的閃光燈無法工作,因爲它無法識別xml文件。這裏是詳細錯誤:如何解決HTTP錯誤404.8?

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 

回答

13

該問題是由IIS保護您正在請求的文件引起的。

默認情況下,IIS會設置一個過濾器來拒絕對具有某些名稱(如app_data,bin等)的文件的請求,以保護Web應用程序。這是通過IIS中的隱藏段控制完成的。你的應用似乎受此影響。

理想情況下,您應該更改所請求文件的名稱。

但是,如果您不能這樣做,請參閱article here以瞭解如何將其刪除的步驟。

1

在我的情況,我有一個應用程序有一個名爲bin的業務對象。你能猜到發生了什麼?我的BinController的url爲http://localhost:6537/bin/index

很明顯,RequestFiltering有一個拒絕訪問bin文件夾的入口,所以請求在進入MVC路由引擎之前就被阻塞了。

我簡單地將我的控制器重命名爲BinsController,http://localhost:6537/bins/index工作得很好。