Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure SSIS目录:未能编译包中包含的脚本_Azure_Ssis_Azure Sql Database_Ssis 2017 - Fatal编程技术网

Azure SSIS目录:未能编译包中包含的脚本

Azure SSIS目录:未能编译包中包含的脚本,azure,ssis,azure-sql-database,ssis-2017,Azure,Ssis,Azure Sql Database,Ssis 2017,我们有一个SSIS包,用于从SharePoint下载一些Excel文件并将其加载到On-Prem SQL数据库。该包将从Sharepoint中获取状态字段中具有挂起值的文件,处理该文件并将状态更新为“已完成”返回共享点 当它在Prem上运行时,它曾经工作得很好,最近我们将其迁移到Azure,并将部署方法从文件系统更改为SSIS目录。现在,当我们尝试在目录中部署包时,会出现以下错误: Error: 1. Failed to compiled scripts contained in the pac

我们有一个SSIS包,用于从SharePoint下载一些Excel文件并将其加载到On-Prem SQL数据库。该包将从Sharepoint中获取状态字段中具有挂起值的文件,处理该文件并将状态更新为“已完成”返回共享点

当它在Prem上运行时,它曾经工作得很好,最近我们将其迁移到Azure,并将部署方法从文件系统更改为SSIS目录。现在,当我们尝试在目录中部署包时,会出现以下错误:

Error:
1. Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
2. CS0234 - The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?), ScriptMain.cs, 16, 17
3. CS0234 - The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?), ScriptMain.cs, 17, 22
4. CS0305 - Using the generic type 'System.Collections.Generic.List<T>' requires 1 type arguments, ScriptMain.cs, 215, 35
5. CS0246 - The type or namespace name 'ClientContext' could not be found (are you missing a using directive or an assembly reference?), ScriptMain.cs, 215, 48
6. The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully
错误:
1.未能编译包中包含的脚本。在SSIS设计器中打开包并解决编译错误。
2.CS0234-命名空间“Microsoft”中不存在类型或命名空间名称“SharePoint”(是否缺少程序集引用?),ScriptMain.cs,16,17
3.CS0234-命名空间“Microsoft”中不存在类型或命名空间名称“SharePoint”(是否缺少程序集引用?),ScriptMain.cs,17,22
4.CS0305-使用泛型类型“System.Collections.generic.List”需要1个类型参数,ScriptMain.cs,215,35
5.CS0246-找不到类型或命名空间名称“ClientContext”(是否缺少using指令或程序集引用?),ScriptMain.cs,215,48
6.找不到脚本的二进制代码。请通过单击“编辑脚本”按钮在设计器中打开脚本,并确保它成功生成

非常感谢您的帮助。提前感谢

您需要在正在使用的任何SSIS运行时上安装sharepoint库。这在虚拟机中吗?然后,它将遵循与上一台服务器完全相同的设置—您需要安装所有必需的库。或者它在Azure Data Factory中?@Nick.McDermaid它是一个VM,我们正在使用用于SharePoint的Nuget库,您的错误是告诉您库未安装或无法访问。SSIS对nuget一无所知。我已经安装了库,构建成功,但在另一台机器上部署时出错。因此,在目标计算机中是否需要注意一些问题?您需要在运行时计算机上安装库。您需要在正在使用的任何SSIS运行时上安装sharepoint库。这在虚拟机中吗?然后,它将遵循与上一台服务器完全相同的设置—您需要安装所有必需的库。或者它在Azure Data Factory中?@Nick.McDermaid它是一个VM,我们正在使用用于SharePoint的Nuget库,您的错误是告诉您库未安装或无法访问。SSIS对nuget一无所知。我已经安装了库,构建成功,但在另一台机器上部署时出错。因此,如果您需要在运行时机器上安装库,那么在目标机器中需要注意一些事情。