Recently after deploying the SSIS packages, on one of the packages that uses Script Component, we started getting below error message
This happened because SSIS packages had target version SQL 2017 and the SQL Server version was 2016 (select @@VERSION)
The fix is to update the target version that matches the SQL Server Version.
Right click and go to project properties and update the Target Version to match and redeploy the project.
Hope this helps..