在aspx页面上呈现报告时,Sharepoint集成报告会出错

时间:2015-12-30 22:59:30

标签: asp.net sharepoint reporting-services

我正在尝试在aspx页面上呈现sharepoint集成报告。这是代码:

ReportViewer1.ServerReport.ReportServerUrl = new Uri(" http://<sharepointServer>/sites/");
ReportViewer1.ServerReport.ReportPath = "http://<SharepointServer>/sites/<app>/<reportlist>/Reportname.rdl";

获取参数时,我收到以下错误:

An exception of type 'Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.MissingEndpointException' occurred in Microsoft.ReportViewer.WebForms.dll but was not handled in user code

Additional information: The attempt to connect to the report server failed.  Check your connection information and that the report server is a compatible version.

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

虽然不太晚,但是下面的解决方案对我有用 -

SharePoint集成模式需要注意的事项:

  1. 必须将报表查看器指向报表服务器代理 位于SharePoint网站下。换句话说,而不是设置 ServerReport.ReportServerUrl到 &#34; http:// {sharepointServer} / sites / {app}&#34;,应将其设置为 &#34; HTTP:// {sharepointServer} /位点/ {应用} / _vti_bin /的ReportServer&#34 ;.

  2. 报告路径必须是SharePoint中.RDL的绝对路径。     因此,ServerReport.ReportPath应设置为     &#34; HTTP:// {sharepointServer} /位点/ {应用} / {ReportList} /MyReport.rdl" ;.

    ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://{sharepointServer}/sites/{app}/_vti_bin/ReportServer");
    ReportViewer1.ServerReport.ReportPath = "http://{sharepointServer}/sites/{app}/{reportlist}/Reportname.rdl";