5

当我尝试在 Visual Studio 2012 Designer 中预览报告时,出现错误:

An error occurred during local report processing.
An unexpected error occurred in Report Processing.
An error occurred during local report processing.
Error in the application.

Could not find a part of the path '...\bin\Debug\Data Sources\SomeDatasource.rds'.

夫妇评论:

  1. 项目中有一个有效的数据源。
  2. 当我构建项目时,它会在 bin\Debug 文件夹中创建报告、数据集和数据源的平面(无文件夹)结构
  3. 数据源文件夹(连同其他文件夹)仅用于部署
  4. 当我在部署设置中删除文件夹时,它仍然无法正常工作
  5. 它可能与昨天安装最新的 SSDT(11.1.40403.0)有关......但是在安装一切正常之后
  6. 到目前为止,一切都在这个配置中工作......
4

3 回答 3

11

1)通过右键单击打开报告定义的xml - >查看代码

2) 浏览到 Report -> DataSources -> DataSourceReference

3) 将“/Data Sources/MyDS”替换为“MyDS”

这显然应该现在已经修补了!

于 2015-02-04T19:36:45.310 回答
7

I got this error on deployment because the .rds file was not yet made in the deployment folder. My data source was under Shared Data Sources. I fixed it by building the .rds file in Visual Studio like so.

  1. Right click on .rds file in question.
  2. Click Build

enter image description here

This creates the .rds file in the folder that is being used for deployment.

于 2016-09-15T16:08:10.177 回答
0

我在 .../bin/Debug/ 下创建了一个“数据源”文件夹,并将数据源项复制到其中。我尝试了上述方法,但这就是为我解决的问题。(SSDT 2017,使用 SQL 2014 SSRS 文件)

于 2022-02-25T16:11:20.803 回答