I have run into this strange SSIS error where my script component on the server keeps failing with the error -"The binary code for the script is not found. Please open the script and make sure it build correctly". The script build absolutely fine on my local machine. The script component basically refers to 3 additional DLLs , apart from the standard references that you get when you open a script component. These dlls are Microsoft.Hadoop.avro.dll, Newtonsoft.json.dll and Microsoft.Csharp.
The Microsoft.Hadoop.avro and Newtonsoft.json are the ones that I had to download and I have even registered to the GAC, both on the local and the server.
I have tried opening the components, rebuilding them, saving them and deploying them. I have set DelayValidation to False on the Data Flow. I have set "Copy local" to False for the dlls in the reference section. I have re-added the references by explicitly putting in the GAC location i.e. C:\Windows\Microsoft.Net\Assembly\GAC_MSIL.
Basically this script component acts as a destination and writes avro files.
As mentioned , everything works on my local. I have even tried downloading the packages on my local from the SSIS catalog on the server and then executing it and even that works (just to see if during the deployment process something changed or became awry). I am at a loss to explain what is missing here. By the way , this is SSIS 2016, deployed to the catalog (project deployment model) and then I am executing it through a SQL Agent job.
The Target framework of the script component is .Net 4.5.
Anybody on ideas to solve this?
If more information is required, I will be happy to provide it.