升级到Creator Edition后出现异常

时间:2017-06-15 07:57:20

标签: c# windows-10 reportviewer

以下代码行在昨天工作正常。

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()}

还有其他人看到过这种情况吗?有什么想法吗?感谢

1 个答案:

答案 0 :(得分:1)

经过几次重新启动后,开始工作了。

在更新后,报告系统可能没有重新启动......