0
無論我如何配置Credentials屬性,當我嘗試渲染報告時,都會收到401異常。這是我的(最新)代碼:SQL Server Reporting Services 2008:如何正確設置憑證屬性?
var rs = new ReportExecutionService();
rs.Url = "https://myserver/reportserver/reportexecution2005.asmx";
var myCache = new System.Net.CredentialCache();
myCache.Add(new Uri(rs.Url), "kerberos" , new System.Net.NetworkCredential("username", "password", "Domain"));
rs.Credentials = myCache;
URL和憑證都是正確的。但當我cal rs.Render(...)時仍然會獲得401。 Reporting Services安裝位於Windows Server 2008框中,需要集成身份驗證。
感謝
此外,在reportserver.config我使用 –
wgpubs
2010-03-13 00:29:00