.net应用程序在SQL Server 2005的服务器上运行,现在我们将应用程序重定位到SQL Server 2008的新服务器。
以下是我尝试从应用程序获取报告时的错误:
'/ Importal'应用程序中的服务器错误。
请求失败,HTTP状态为404:未找到。描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:System.Net.WebException:请求失败,HTTP状态为404:未找到。
来源错误:
在执行当前Web请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息。
堆栈跟踪:
[WebException:请求失败,HTTP状态为404:未找到。] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message,WebResponse response,Stream responseStream,Boolean asyncCall)+431225 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName,Object []参数)+204 Microsoft.SqlServer.ReportingServices2005.Execution.ReportExecutionService.LoadReport(String Report,String HistoryID)+69 Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report,String HistoryID)+67
[MissingEndpointException:尝试连接到报表服务器失败。检查您的连接信息,并且报表服务器是兼容版本。] Microsoft.SqlServer.ReportingServices2005.Execution.MissingEndpointException.ThrowIfEndpointMissing(WebException e)+4027725 Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report,String HistoryID)+107 Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo()+ 121 Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1参数)+67 ImportPerformanceKPI.btnList_Click(Object sender,EventArgs e)+425 System.Web.UI.WebControls.Button.OnClick(EventArgs e)+111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)+110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)+10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,String eventArgument)+13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)+36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+1565
如果未配置Reporting Manager,则需要在新SQL Server上配置Reporting Services。你可能已经做到了。
在错误内部,我们有:
[MissingEndpointException:尝试连接到报表服务器失败。检查连接信息,并且报表服务器是兼容版本。 ]
接下来确保您的应用程序指向新的SQL Server实例(它正在寻找2005实例)。然后检查您的应用程序是否适用于SSRS 2008。