IIS 開啟執行 ASP 的應用程序設定
Windows 7 在預設中很多項目需要以手動開啟這些設定。
必須先於控制台 程式集 程式和功能 開啟或關閉 Windows 功能來 啟用 IIS 功能。
於站台 Default Web Site 的 ASP 項目中選擇「開啟功能」
將錯誤傳送到瀏覽器(才能顯示 500 內部伺服器錯誤的偵錯訊息)
啟用上層路徑
在 IIS 中預設上層路徑的連結是允許的。啟用上層路徑會指定是否允許 ASP 頁相對於目前目錄的路徑 (使用 ..\ 符號)。因為包含路徑可存取應用程式之根目錄外的重要或機密檔案,所以如果設定成 true
則此屬性會造成潛在的安全性風險。
HasItems
Item Name | TypeName | Item | Items | Contents | Count |
---|---|---|---|---|---|
ObjectContext | IASPObjectContext | False | False | False | False |
Server | IServer | False | False | False | False |
Application | IApplicationObject | True | False | True | False |
Application.Contents | IVariantDictionary | True | False | False | True |
Application.StaticObjects | IVariantDictionary | True | False | False | True |
Session | ISessionObject | True | False | True | False |
Session.Contents | IVariantDictionary | True | False | False | True |
Session.StaticObjects | IVariantDictionary | True | False | False | True |
Request | IRequest | True | False | False | False |
Response | IResponse | False | False | False | False |
Server.GetLastError | IASPError | False | False | False | False |
Request.ServerVariables | IRequestDictionary | True | False | False | True |
Request.ClientCertificate | IRequestDictionary | True | False | False | True |
Request.Cookies | IRequestDictionary | True | False | False | True |
Request.Form | IRequestDictionary | True | False | False | True |
Request.QueryString | IRequestDictionary | True | False | False | True |
Response | IResponse | False | False | False | False |
Response.Cookies | IRequestDictionary | True | False | False | True |
Request.Form("ID") | IStringList | True | False | False | True |
Request.QueryString("ID") | IStringList | True | False | False | True |
Request.Cookies("ID") | IReadCookie | True | False | False | True |
Request.ClientCertificate("Subject") | IRequestDictionary | True | False | False | True |
Request.ServerVariables("URL") | IStringList | True | False | False | True |
Server.CreateObject("ADODB.Connection") | Connection | False | False | False | False |
Server.CreateObject("ADODB.Recordset") | Recordset | False | False | False | False |
Server.CreateObject("Scripting.FileSystemObject") | FileSystemObject | False | False | False | False |
Server.CreateObject("Scripting.Dictionary") | Dictionary | True | True | False | True |