尝试访问远程服务器时,ReportingServicesTools cmdlet的New-RsWebServiceProxy引发错误

时间:2019-06-14 06:56:18

标签: powershell reporting-services

ReportingServicesTools无法连接到远程Reporting Server,但可以与 localhost 正常工作。 另外,当您通过浏览器访问URI时,在输入正确的凭据后,它会返回正确的页面。

当我调用以下命令时

New-RsWebServiceProxy -ReportServerUri New-RsWebServiceProxy -ReportServerUri http://<ServerName>/<ReportServer> -verbose

我收到以下错误

VERBOSE: Establishing proxy connection to http://\<ServerName\>/\<ReportServer\> /ReportService2010.asmx/ReportService2010.asmx...
Failed to establish proxy connection to http://\<ServerName\>/\<ReportServer\> /ReportService2010.asmx/ReportService2010.asmx : The HTML document does not contain Web service discovery
information.
At C:\Program Files\WindowsPowerShell\Modules\ReportingServicesTools\0.0.5.0\Functions\Utilities\New-RsWebServiceProxy.ps1:114 char:9
\+         throw (New-Object System.Exception("Failed to establish proxy ...
\+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [], Exception
    + FullyQualifiedErrorId : Failed to establish proxy connection to http://\<ServerName\>/\<ReportServer\>/ReportService2010.asmx/ReportService2010.asmx : The HTML document does not contain
Web service discovery information.

当我在浏览器中点击 ReportServerURI 时,会要求我输入凭据,输入凭据后,我就能看到报表服务器的详细信息。服务器是远程服务器,而不是localhost,凭据与我从中调用脚本的登录凭据相同。我已经传递了-credential参数来输入凭据,但是遇到相同的错误。

此外,该脚本对于 localhost

也可以正常工作

我还创建了 github Issue

0 个答案:

没有答案