我打算从Crystal Reports转向SSDT。 我在Visual Studio中创建了一个报表项目,并尝试创建一个基本报表,从一个表中提取3列。
我的查询是:
select SRNO, EMPSRNO, PYMONTH
from PYHeader
where PYMONTH = 'Jan-2018'
我创建了一个数据源和数据集,在设计视图中拖动了一个表格控件,并将3列拖到了表格的3列。
代码在查询设计器中正常运行,但当我尝试预览时,它会显示错误:
“本地报告处理期间发生错误。出现错误 在报告处理期间发生。“
有人可以告诉我有什么问题吗?
注意:我也已停用防病毒软件和Windows防火墙。
组件: 我在用: Visual Studio Enterprise 2015版本14.0.24720.00更新1, SQL Server 2005 Express, .NET Framework 4.6.01038,SSDT_14.0.61712.050_EN,Win 10 Pro 64位
其他错误日志:
===================================
无法连接到报表服务器http://localhost/reportserver。验证TargetServerURL是否有效以及您是否具有连接到报表服务器的正确权限。 (Microsoft SQL Server报表设计器)
===================================
无法连接到远程服务器(Microsoft.ReportingServices.RsClient)
计划地点:
at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SetConnectionProtocol() 在Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol) 在Microsoft.SqlServer.ReportingServices2010.RSConnection2010.ListItemTypes() 在ReportServiceClient2010.CheckAuthenticated() 在Microsoft.ReportDesigner.Project.ReportClientManager.DetectEndpointAndAuthenticate(String url,ICredentials credentials,String& authCookieName,Cookie& authCookie,EndpointType& endpointType) 在Microsoft.ReportDesigner.Project.ReportClientManager.DetectEndpointAndAuthenticate(String url,ConnectionProperties& connectionProperties) 在Microsoft.ReportDesigner.Project.ReportClientManager.GetCredentials(String url,CancelFlag cancelFlag,IPromptCreds promptCredentials) 在Microsoft.ReportDesigner.Project.ReportProjectDeployer.PrepareDeploy()
===================================
无法建立连接,因为目标计算机主动拒绝了它127.0.0.1:80(系统)
计划地点:
System.Net.Sockets.Socket.DoConnect上的(EndPoint endPointSnapshot,SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure,Socket s4,Socket s6,Socket& socket,IPAddress& address,ConnectSocketState state,IAsyncResult asyncResult,Exception& exception)
答案 0 :(得分:0)
问题已经解决。 我没有安装SQL Server报告服务(SSRS) - 在Services.msc中它应该显示" SQL Server Reporting Services(MSSQLSERVER)"那不是。 此外,我当前版本的SQL Server(即2005)并不兼容。
我不得不卸载SQL Server 2005 Express。在安装SQL Server 2008 R2 Express时,它可以选择安装" Reporting Service"。
那,以及稍后的一些配置,它现在正常工作。