簡體   English   中英

SSRS 2008 R2升級-Web服務訪問問題-未經授權的401

[英]SSRS 2008 R2 upgrade - webservice access issue - 401 unauthorized

我們已經從SSRS 2008實例升級到SSRS 2008 R2。 這是就地升級,因此報表和數據源已移至新實例。

從應用程序端(asp.net),我們使用SSRS Web服務(ReportService2005.asmx)進行諸如ListChildren,GetPolicies之類的調用,以處理某些特定於應用程序的情況。

但是,升級到R2之后,對ListChildren的Web服務調用失敗,並顯示“ 401,unororized”消息。

ReportingService2005 reportService = new ReportingService2005();

                reportService.Url = ConfigurationManager.AppSettings["ReportServerWebserviceUrl"];

                reportService.Credentials = new NetworkCredential(
                       ConfigurationManager.AppSettings["ReportViewerUser"],
                    ConfigurationManager.AppSettings["ReportViewerPassword"],
                    ConfigurationManager.AppSettings["ReportViewerDomain"]);
                reportService.PreAuthenticate = true;                

                SSRSReportServer.CatalogItem[] _reportItems = new SSRSReportServer.CatalogItem[] { };

_reportItems = reportService.ListChildren(ConfigurationManager.AppSettings["RootFolder"], true);

asp.net應用程序中的代碼如上所述。 上面的NetworkCredential中使用的帳戶處於活動狀態,並且我已檢查確保該帳戶未鎖定。

將該帳戶設置為該代碼試圖訪問的SSRS文件夾上的Content Manager。

當我瀏覽到http://server/reportserver/reportservice2005.asmx時 -我能夠看到Web服務的wdsl。

總的來說,當指向Sql2008 SSRS實例時,這是有效的代碼-並且Sql2008 R2實例上顯示401錯誤。

有任何想法嗎?

您的Web服務器是否已設置為對SQL2008實例而不是R2實例使用委托? 由於您在Web服務器上設置了憑據,因此這可能不是問題,但這是一個相當普遍的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM