I have 3 SSIS packages with script tasks that all do very similar things - query a SQL Server database, loop through the results, and then call a SOAP webservice for each row. These packages run fine locally, and run fine on a development and a QA server.
On the production server, 1 runs fine and 2 fail with the ominous "Cannot load script for execution" error. These are SQL 2008 R2 environments on Server 2008 SP2. The error happens regardless of the user who runs them.
So far I have tried the following:
- Run the package in my dev environment with the database connections pointing to production (runs fine)
- Set Run64BitRuntime to false in project setting. Made no difference.
- Deleted the package and redeployed it
- Given explicit write access to /Windows/Temp as suggested here. This did initially happen when running with a proxy user, sowe tried this fix. But I get the same error when running with my admin account.
I cannot recompile the script on the production server because the development stack is not there and it is a production server. I can also not install or update BIDS on this server as proposed here.
It seems that somehow it might be required to recompile the script on the target environment, based on what some people have found, but I don't have this option.