how to install newtonsoft to global assembly cache for use in SSIS Script task

Raj D 581 Reputation points

Hi, I am using newtonsoft dll to parse json data in SSIS script task. This works as expected on my local machine but when deployed to SQL Server and run from SQL Server job throws error "Exception has been thrown by target of an invocation". I am trying to install newtonsoft dll to global assembly cache. In order to accomplish this do I have to install Newtonsoft to the server for instance its saved to C directory. Then install it to global assembly cache using gacutil.


gacutil /i Newtonsoft.Json.dll

Thank you

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,446 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalv-MSFT 5,891 Reputation points

    Hi @Raj D ,

    Please add assembly dll reference in SSIS Script Task.


    Hope the following link will be helpful:

    Reference Assembly in SSIS Script Task (.net Custom Assembly)

    Best Regards,


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues in November--What can I do if my transaction log is full?
    Hot issues in November--How to convert Profiler trace into a SQL Server table?