首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式碼之家 >> 數據庫知識 >  >> SQL Server 資料庫 >> 關於SqlServer

SQL Server 2008 Reporting Services 虛擬目錄手動建立步驟:修正 IIS 整合缺失

     編輯:關於SqlServer

SQL Server 2008 安裝 Reporting Services 時,偶發 IIS 虛擬目錄未自動建立的情況 (疑似安裝程式 Bug)。本文提供完整手動建立 Reports (管理入口) 與 ReportServer (服務端點) 兩個虛擬目錄的步驟、應用程式集區設定、.NET 版本確認與驗證網址。

前置條件

  • 已安裝 SQL Server 2008 Reporting Services (原生模式)。
  • IIS 7.0+ (Windows Server 2008/Vista 以上)。
  • Reporting Services 服務狀態為「執行中」。

步驟 1:建立專用應用程式集區

  1. 開啟 INETMGR (IIS 管理員)。
  2. 右鍵「應用程式集區」→ 「新增應用程式集區」。
  3. 名稱:ReportPool,.NET CLR 版本:v2.0 (整合模式),其餘預設。

步驟 2:建立 Reports 虛擬目錄 (管理入口)

  1. 展開「網站」→ 「預設網站」→ 右鍵「新增應用程式」 (或「新增虛擬目錄」)。
  2. 別名:Reports。
  3. 實體路徑:C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportManager
    ※ 若安裝至非 C 槽或具名實例,路徑中 MSRS10.MSSQLSERVER 需對應調整。
  4. 確定後,選取 Reports → 「基本設定」→ 「應用程式集區」改為 ReportPool。
  5. 確認「.NET 編譯版本」為 v2.0。

步驟 3:建立 ReportServer 虛擬目錄 (服務端點)

  1. 同樣在「預設網站」新增應用程式/虛擬目錄。
  2. 別名:ReportServer。
  3. 實體路徑:C:\Program Files\Microsoft SQL Server\MSRS10.MSSQLSERVER\Reporting Services\ReportServer。
  4. 應用程式集區設為 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)。

常見問題排查

  • 「無法載入檔案或組件 Microsoft.ReportingServices...」:確認 .NET 版本為 v2.0,非 v4.0;必要時執行 aspnet_regiis -i 註冊 ASP.NET 2.0。
  • 雙重跳躍 (Double Hop) 驗證失敗:設定 Kerberos 委派或使用 SQL 驗證資料來源。
  • SSL/HTTPS:在 IIS 繫結憑證,修改 rsreportserver.config 中 SecureConnectionLevel。

自動化腳本 (PowerShell)

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

納入部署自動化流程,避免手動遺漏。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式碼之家 All Rights Reserved