We had an SSIS Package which we used to Download some Excel files from the SharePoint and Load it to the On-Prem SQL Database. The Package will Fetch the Files from Sharepoint having the value Pending in the Status field, Process the file and update the status as Completed back to the share point.
This used to work perfectly when it was in On-Prem, Recently we migrated the same to Azure and change the deployment method from File system to SSIS Catalog. Now when We try to Deploy the package in the Catalog, we are getting the following error :
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
Any help is much appreciated. Thanks in Advance