Hi @Anupriya Athalye,
This is a well-known issue. Script tasks require recompilation after migrating to 2019 as they hold onto old .net references.
In addition, as said here, Script Task and Script Component scripts that explicitly reference ADODB.dll may not upgrade or run on machines without SQL Server Management Studio or SQL Server Data Tools (SSDT) installed. In order to upgrade these Script Task or Script Component scripts, it is recommended that you remove the dependency on ADODB.dll. Ado.Net is the recommended alternative for managed code such as VB and C# scripts.
You may have a double check.
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.