This type of page is not served 解決辦法

前兩天部署ASP程序時,涉及到生成access文件, 發現如下錯誤

 

Server Error in '/' Application.
--------------------------------------------------------------------------------

This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.mdb' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

Requested URL: /file/temp/121109xxx.mdb

 

 

如果你的程序需要下載mdb文件,只需啓用mdb下載即可

 

啓用鎖定文件擴展名的下載
IIS(Internet 信息服務)會保護某些文件類型,例如  .mdb 文件。如果應用程序有鎖定的文件,請執行以下操作啓用對此類文件的下載:

在“虛擬目錄”選項卡上單擊“配置”。

您將看到一個應用程序映射列表。刪除 .mdb擴展名的映射以啓用 .mdb 文件下載。

對此列表中希望作爲應用程序一部分下載的所有其他擴展名重複此操作

 

詳細參閱另一篇文章

 

 

發佈了95 篇原創文章 · 獲贊 40 · 訪問量 88萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章