91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 41KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-10
  • 語言: 其他
  • 標簽:

資源簡介

在本機可以瀏覽報表服務器中的報表,部署在iis中訪問出現如下問題:為用戶“NT AUTHORITY\NETWORK SERVICE”授予的權限不足,無法執行此操作

資源截圖

代碼片段和文件信息

using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
using?Microsoft.SqlServer.ReportingServices.ReportService2005;

public?partial?class?_Default?:?System.Web.UI.Page
{
????const?string?m_wsdl?=?“/ReportService2005.asmx“;
????//ReportingWS.ReportingService?rs?=?new?ReportingWS.ReportingService();
????Microsoft.SqlServer.ReportingServices.ReportService2005.ReportingService2005?rs?=?new?Microsoft.SqlServer.ReportingServices.ReportService2005.ReportingService2005();
????///?
????///?為Treeview添加節點
????///?

????///?節點集合
????///?節點對象的路徑
????private?void?AddNodes(TreeNodeCollection?tnc?string?nodepath)
????{
????????//將節點路徑中包含的對象列舉出來
????????CatalogItem[]?items?=?listChildren(nodepath);
????????
????????for?(int?i?=?0;?i?????????{
????????????//限制為用戶waxdoll\\administrator創建的對象,其中對象又限制為文件夾和報表
????????????if?(items[i].CreatedBy?==?“LIUQIJUN\\Administrator“)
????????????{
????????????????if?(items[i].Type?==??ItemTypeEnum.Folder)
????????????????????tnc.Add(new?TreeNode(items[i].Name?“folder“?+?items[i].Path?“folder.gif“?““?““));
????????????????else?if?(items[i].Type?==?ItemTypeEnum.Report)
????????????????????tnc.Add(new?TreeNode(items[i].Name?“report“?+?items[i].Path?“report.gif“?““?““));
????????????}
????????}

????????items?=?null;
????}
????private?CatalogItem[]?listChildren(string?item)
????{
????????CatalogItem?[]?items?=?null;
????????try
????????{
????????????items?=?rs.ListChildren(item?false);
????????}
????????catch?(System.Exception?ex)
????????{

????????}
????????return?items;

????}
????private?void?setUserLogion(string?reportserverPath)
????{
????????System.Net.NetworkCredential?LogonCredentials?=?new?System.Net.NetworkCredential(“Administrator“?“654321“?““);
????????rs.Credentials?=?LogonCredentials;
????????rs.PreAuthenticate?=?true;
????????rs.Url?=?reportserverPath?+?m_wsdl;

????}
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????//設置Web?Services客戶端身份驗證的安全憑據

????????setUserLogion(“http://192.168.0.100/reportserver“);
????????if?(!this.IsPostBack)
????????????this.AddNodes(this.trvReport.Nodes?“/“);
????}

????protected?void?trvReport_SelectedNodeChanged(object?sender?EventArgs?e)
????{
????????if?(this.trvReport.SelectedNode?!=?null)
????????{
????????????string?strType?=?this.trvReport.SelectedNode.Value.Substring(0?6);

????????????if?(strType?==?“report“)
????????????{
????????????????//選中的節點為報表,則在ReportViewer控件中顯示該報表
????????????????this.rvReport.Visible?=?true;
????????????????//為ReportViewer顯示服務器端報表進行的屬性設置
????????????????this.rvReport.ProcessingMode?=?Microsoft.Reporting.WebForms.ProcessingMode.Remote;
???

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????582930??2011-01-17?10:32??RSWS\App_Code\ReportService2005.cs

?????文件????????409??2011-01-17?09:53??RSWS\App_WebReferences\ReportingWS\ReportService.discomap

?????文件?????196342??2011-01-17?09:56??RSWS\App_WebReferences\ReportingWS\ReportService.wsdl

?????文件???????1574??2006-07-29?23:57??RSWS\Default.aspx

?????文件???????3891??2011-01-17?10:48??RSWS\Default.aspx.cs

?????文件????????610??2006-07-29?18:24??RSWS\folder.gif

?????文件????????607??2006-07-29?18:26??RSWS\report.gif

?????文件???????2168??2011-01-17?09:56??RSWS\Web.Config

?????目錄??????????0??2011-01-17?09:56??RSWS\App_WebReferences\ReportingWS

?????目錄??????????0??2011-01-17?10:32??RSWS\App_Code

?????目錄??????????0??2011-01-15?16:46??RSWS\App_Data

?????目錄??????????0??2011-01-15?16:46??RSWS\App_WebReferences

?????目錄??????????0??2011-01-17?10:48??RSWS

-----------?---------??----------?-----??----

???????????????788531????????????????????13


評論

共有 條評論

相關資源