【茶包射手專橺】Reporting Service圖表無法顯示

同事回報一個問題,在測試台檢視Reporting Service報表時,應該顯示長條圖、圓餅圖的地方出現一個大叉叉,同一程式在正式台則一切正常。

首先出場的工具是Fiddler,很快就抓到在GET圖檔的Request有以下錯誤:
ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.StreamNotFoundException: The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database. ; (找不到資料流。報表伺服器資料庫中找不到提供給作業的資料流識別項。)
 Info: Microsoft.ReportingServices.Diagnostics.Utilities.StreamNotFoundException: The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database. (找不到資料流。報表伺服器資料庫中找不到提供給作業的資料流識別項。)

用rsStreamNotFound當關鍵字,我Google到一篇文章,說明這可能與Cookie有關。我仔細看了一下,有問題的網頁是用ASPX在其中包含Frame指向Reporting Service報表所在的httq://192.168.1.1/ReportServer?... URL。

依我多年吃餅乾的經驗,這種情境很符合3rd Party Cookie被禁用的條件,Check了一下IE的工具列,果然有個被禁止的眼睛Icon(參見這篇文件關於Cookie Filtering的說明)。點開後確認一個來自httq://192.168.1.1/ReportServer的Cookie被Block掉了,在正式台上,Reporting Service報表主機的URL用的是Machine-Name所以沒問題,這印證了先前找到那篇文章所說的Cookie Issue。

為了進一步驗證真的是Cookie問題,我將httq://192.168.1.1設為IE的被信任網站,報表中的圖表就可順利顯示,宣布破案。

解決方式有二: 1) 將Reporting Service Server的IP加為IE的信任站台(Trusted  Sites)解決Cookie被阻擋的問題,2) 連至Reporting Service的URL不要用IP,改用機器名稱(當然,要確保名稱解析是OK的),利用Local Intranet安全區域避開Cookie阻擋問題。我個人建議使用後者。

歡迎推文分享:
Published 17 October 2007 03:25 PM 由 Jeffrey
Views: 13,284



意見

# 喵喵 said on 08 January, 2009 10:25 AM

大大好!..最近遇到客戶要用reporting services設計所有的表格..其中有一張訂購單..因為第一列..是由4欄所組成的格式(先塞了一個資料表..ex:table1)..第二列..是由6欄所組成的(在table1裡的頁首>插入資料行>塞入另一個資料表table2)..

但是在設定這二個資料表的表格格線時..table2的右邊框與table1的邊框中間都會出現間距..

請問..大大有遇到這種情況過嗎?..><??..

3Q~!!

# Jeffrey said on 08 January, 2009 03:40 PM

to 喵喵,擔心重現這問題過程可能失真,我建議你可以抓幾個畫面(設計階段及顯示階段),大家再幫你動動腦。

# Anthony said on 11 January, 2012 02:59 AM

这儿有一些关于Reproting Service的,建议参考参考

www.keepautomation.com/.../net_barcode_reporting_service

稍后还会有Crydtal Report 的,希望能帮到。

你的看法呢?

(必要的) 
(必要的) 
(選擇性的)
(必要的) 
(提醒: 因快取機制,您的留言幾分鐘後才會顯示在網站,請耐心稍候)

5 + 3 =

搜尋

Go

<October 2007>
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910
 
RSS
創用 CC 授權條款
【廣告】
twMVC
最新回應

Tags 分類檢視
關於作者

一個醉心技術又酷愛分享的Coding魔人,十年的IT職場生涯,寫過系統、管過專案, 也帶過團隊,最後還是無怨無悔地選擇了技術鑽研這條路,近年來則以做一個"有為的中年人"自許。

文章典藏
其他功能

這個部落格


Syndication