在SSIS中的脚本任务中添加Web服务时出错?

时间:2016-08-18 03:52:13

标签: web-services visual-studio-2010 reporting-services ssis sql-server-data-tools

我有这个任务在SSIS中发送RS报告(事件驱动)。我有这个脚本任务,它提取报告和另一个脚本任务来发送电子邮件。

在我的脚本任务中,我可以添加Web引用,在代码中引用它,成功构建并保存它。   的的http:// {YourReportServerURL} /reportserver/reportexecution2005.asmx

但是当我退出脚本任务编辑器时,我收到一个脚本错误,说明“包中包含的脚本有编译错误。你想保存更改吗?”

它上面出现一个红叉,表示“找不到脚本的二进制代码。”。我将 DelayValidation 设置为true以删除此红叉

当我执行包时,由于未找到脚本的二进制代码错误

顺便说一下这些是我的参考: http://www.travisgan.com/2013/09/ssrs-data-drive-subscriptions-part-3.html

http://www.macaalay.com/2014/04/02/how-to-create-data-driven-report-subscriptions-in-sql-server-standard-version/

我正在使用VS 2010.我该如何解决这个问题?我需要你的帮助!

提前致谢。

1 个答案:

答案 0 :(得分:0)

请查看SSIS Package failing because “script task is failing because the script is not precompiled”。您的问题看起来与该问题中描述的类似。 基本上,您需要确保将VSTA项目代码设置为MSIL,构建项目并保存。之后 - 关闭VSTA编辑器,然后在脚本任务上单击“确定”。

相关问题