Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net Sharepoint集成报表在aspx页面上呈现报表时出错_Asp.net_Sharepoint_Reporting Services - Fatal编程技术网

Asp.net Sharepoint集成报表在aspx页面上呈现报表时出错

Asp.net Sharepoint集成报表在aspx页面上呈现报表时出错,asp.net,sharepoint,reporting-services,Asp.net,Sharepoint,Reporting Services,我正在尝试在aspx页面上呈现sharepoint集成报告。代码如下: ReportViewer1.ServerReport.ReportServerUrl = new Uri(" http://<sharepointServer>/sites/"); ReportViewer1.ServerReport.ReportPath = "http://<SharepointServer>/sites/<app>/<reportlist>/Reportn

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

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

有什么想法吗?

虽然有点晚了,但下面的解决方案对我很有效-

SharePoint集成模式需要注意的几点:

  • 报表查看器必须指向报表服务器代理,该代理 位于SharePoint网站下。换句话说,不是设置 ServerReport.ReportServerUrl到 “http://{sharepointServer}/sites/{app}”,应将其设置为 “http://{sharepointServer}/sites/{app}/_vti_bin/ReportServer”

  • 报表路径必须是SharePoint中.RDL的绝对路径。 因此,ServerReport.ReportPath应设置为 “http://{sharepointServer}/sites/{app}/{ReportList}/MyReport.rdl”


  • 虽然有点晚了,但下面的解决方案对我有效-

    SharePoint集成模式需要注意的几点:

  • 报表查看器必须指向报表服务器代理,该代理 位于SharePoint网站下。换句话说,不是设置 ServerReport.ReportServerUrl到 “http://{sharepointServer}/sites/{app}”,应将其设置为 “http://{sharepointServer}/sites/{app}/_vti_bin/ReportServer”

  • 报表路径必须是SharePoint中.RDL的绝对路径。 因此,ServerReport.ReportPath应设置为 “http://{sharepointServer}/sites/{app}/{ReportList}/MyReport.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.
    
    ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://{sharepointServer}/sites/{app}/_vti_bin/ReportServer");
    ReportViewer1.ServerReport.ReportPath = "http://{sharepointServer}/sites/{app}/{reportlist}/Reportname.rdl";