0
以下代碼行可以正常工作到昨天。升級到Creator Edition後異常
ReportViewer1.ServerReport.GetParameters().Count
我的電腦一夜之間更新到Windows 10的「造物主版」,現在我得到如下所示的例外......
'ReportViewer1.ServerReport.GetParameters()' threw an exception of type 'System.Net.WebException'
Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233079
HelpLink: null
InnerException: {"No connection could be made because the target machine actively refused it 127.0.0.1:80"}
Message: "Unable to connect to the remote server"
Response: null
Source: "Microsoft.ReportViewer.WebForms"
StackTrace: " at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods()\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname)\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname)\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 sql16Method, ProxyMethod`1 katmaiMethod, ProxyMethod`1 yukonMethod)\r\n at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)\r\n at Microsoft.Reporting.WebForms.SoapReportExecutionService.LoadReport(String report, String historyId)\r\n at Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession()
\r\n at Microsoft.Reporting.WebForms.ServerReport.GetParameters()"
Status: ConnectFailure
TargetSite: {System.String[] GetSecureMethods()}
有沒有其他人看到這種情況發生?任何想法爲什麼?謝謝
對我來說似乎是報告服務器本身沒有運行。那麼你能訪問報告服務器門戶本身嗎? –