SQL Server 2008 安裝 Reporting Services 時,偶發 IIS 虛擬目錄未自動建立的情況 (疑似安裝程式 Bug)。本文提供完整手動建立 Reports (管理入口) 與 ReportServer (服務端點) 兩個虛擬目錄的步驟、應用程式集區設定、.NET 版本確認與驗證網址。
INETMGR (IIS 管理員)。ReportPool,.NET CLR 版本:v2.0 (整合模式),其餘預設。Reports。C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportManagerMSRS10.MSSQLSERVER 需對應調整。Reports → 「基本設定」→ 「應用程式集區」改為 ReportPool。v2.0。ReportServer。C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer。ReportPool,.NET 版本 v2.0。| 功能 | URL | 說明 |
|---|---|---|
| 報表管理入口 | https://localhost/Reports/Home.aspx | 上傳/管理報表、設定訂閱、資料來源 |
| 報表伺服器端點 | https://localhost/ReportServer/ | SOAP 端點、報表轉譯、URL 存取 |
若出現 404/500:檢查 (1) 實體路徑是否存在 Web.config、(2) 應用程式集區身分識別是否具備資料夾讀取權限、(3) Reporting Services 服務是否執行中、(4) 防火牆/URL ACL (netsh http show urlacl)。
aspnet_regiis -i 註冊 ASP.NET 2.0。rsreportserver.config 中 SecureConnectionLevel。Import-Module WebAdministration
$Pool = "ReportPool"
$RsPath = "C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services"
# 建立應用程式集區
New-WebAppPool $Pool -Force
Set-ItemProperty "IIS:\AppPools\$Pool" managedRuntimeVersion v2.0
# Reports
New-WebApplication -Name "Reports" -Site "Default Web Site" -PhysicalPath "$RsPath\ReportManager" -ApplicationPool $Pool
# ReportServer
New-WebApplication -Name "ReportServer" -Site "Default Web Site" -PhysicalPath "$RsPath\ReportServer" -ApplicationPool $Pool
納入部署自動化流程,避免手動遺漏。