我創建並部署傳統的ASP網站,當我在IE瀏覽器上測試,我得到這樣的:HTTP錯誤500.19 - 內部錯誤請求的頁面無法訪問,因爲該頁的相關配置數據無效
HTTP Error 500.19 - Internal Server Error
Description: The requested page cannot be accessed because the related configuration
data for the page is invalid.Error Code: 0x8007000b7
Notification: ExecuteRequestHandler
Module: DefaultDocumentModule
Requested URL: localhost:80/bikes/
Physical Path: D:\BIKES\
Logon User: AnonymousLogon Method: Anonymous
Handler: StaticFile
Config Error: Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to 'index.asp'
Config File: \?\D:\BIKES\web.config
Config Source:
6:<files>
7:<add value="index.asp" />
8:</files>
這是我的web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<add value="index.asp" />
</files>
</defaultDocument>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" users="*" roles="" />
</authorization>
</security>
</system.webServer>
<connectionStrings>
<remove name="LocalSqlServer" />
</connectionStrings>
</configuration>
我試圖刪除標記文件在web.config中的d增加價值:\自行車和系統/的Inetpub/wwwroot文件/ web.config中,但它仍然是同樣的錯誤。請任何人幫助我。
IIS將該網站視爲ASP.NET,因此它無法真正以這種方式工作。通讀[這裏的文章](http://learn.iis.net/page.aspx/559/running-classic-asp-applications-on-iis/),如果仍然沒有運氣讓我們知道。 –