Hi @Jocelyn Kwong,
Install the assembly
Open a command prompt in administrator mode. This may prompt the UAC dialog to pop and you might need to use admin credentials depending on your security set up.
Installation to the GAC is straight-forward after that.
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe"
/if
signals Install and Force a re-install even if the assembly already exists.
If I wanted to install the newtonsoft dll from above, that syntax would be
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\gacutil.exe" /if "C:\Users\bfellows\AppData\Local\Temp\vsta\SSIS_ST140\VstatIBdQdlmHEa__RFeT36Nd9A\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll"
Kindly check below links to see if it is helpful.
https://stackoverflow.com/questions/65632495/could-not-load-file-or-assembly-ssis-script-task
https://github.com/JamesNK/Newtonsoft.Json/issues/2574
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.