无法预览VS2013中的SSRS报告?

BBa*_*r42 5 reporting-services

我在VS2013 .Net 4.5中创建了一个新的"Report Server Project".我添加了一个数据源,测试连接成功.我使用"使用我的报表中嵌入的数据集"选项添加了一个DataSet,选择了之前创建的数据源.查询类型是带有单个文本参数的存储过程.在报告数据框中,我可以右键单击我的DataSet,选择Query,然后执行sproc.我看到网格正确填充了我的数据.

但是,当我尝试创建和预览报表时,它会失败.我做以下事情:

  1. 添加新报告.
  2. 从工具箱中删除表格.
  3. 开始将我的DataSet中的字段拖到表上.
  4. 当我点击预览时,我看到以下内容 在此输入图像描述

这是在输出窗口中吐出的文本:

System.ServiceModel.CommunicationObjectFaultedException:通信对象System.ServiceModel.Channels.ClientFramingDuplexSessionChannel不能用于通信,因为它处于Faulted状态.

服务器堆栈跟踪:位于System.ServiceModel.Dseput上的System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()处于System.ServiceModel.Depatcher.DuplexChannelBinder.BeginRequest的消息消息,消息消息,TimeSpan超时,AsyncCallback回调,对象状态.系统中的System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean completedSynchronously)处的System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult result,Boolean completedSynchronously)上的消息消息,TimeSpan超时,AsyncCallback回调,对象状态. System.ServiceModel上的System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult result,Boolean completedSynchronously)Service.ServiceModel上的System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()中的ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean completedSynchronously) .Channels.ServiceChannel.SendAsyncResult.Begin()在System.ServiceModel.Channels.ServiceChannel.BeginCall(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,TimeSpan timeout,AsyncCallback callback,Object asyncState)System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService( System.ServiceModel.Channels.ServiceChannelProxy.Invoke中的IMethodCallMessage methodCall,ProxyOperationRuntime操作(IMessage消息)

在[0]处重新抛出异常:位于Microsoft.ReportDesigner的System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)的System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg). Microsoft.ReportDesigner.Design.WCFProcessingHost.<> c__DisplayClass1.b__0上的Microsoft.ReportDesigner.Design.PreviewProcessingClient.BeginSetItemPath(String itemPath,AsyncCallback callback,Object asyncState)的Design.IPreviewProcessing.BeginSetItemPath(String itemPath,AsyncCallback callback,Object asyncState). AsyncCallback ac,Object s)在Microsoft.ReportDesigner.Design.WCFProcessingHost.ExecuteAsyncCall(Func`3)的Microsoft.ReportDesigner.Design.WCFProcessingHost.ExecuteWcfCall(Action wcfCall)上的Microsoft.ReportDesigner.Design.WCFProcessingHost.<> c__DisplayClass3b.b__39() Microsoft.ports.WinForms.Lo上的Microsoft.ReportDesigner.Design.WCFProcessingHost.set_ItemContext(PreviewItemContext值)的beginAction,AsyncCallback endAction)Microsoft.ReportDesigner.Design.PreviewFrame.RefreshPreview()上的Microsoft.Reporting.WinForms.LocalReport.set_ReportPath(String value)中的calReport.ChangeReportDefinition(DefinitionSource updatesSourceType,Action changeAction).

我用谷歌搜索了两天没有运气,任何帮助都非常感谢.


编辑: 事实证明,当您预览报表时,此控制台窗口将打开.我必须在第一次关闭它,然后预览失败.如果您打开控制台窗口,预览工作正常.这是一个截图,你可以看到我在说什么.为了让预览工作,我只需要重新启动visual studio,并确保在我点击预览时弹出它时不要关闭控制台窗口.

在此输入图像描述

SQL*_*nbe 4

这是 SSDT-BI 中报告的错误。与此同时,当前的解决方法是右键单击要在解决方案资源管理器中预览的报告,然后单击“运行”,除非您想保持该命令提示符窗口打开,否则它将起作用。