Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

Ajay Jha 0 Reputation points
2025-02-18T13:42:53.2+00:00

Hi

I have added a NewtonSoft. JSON dll in Script task, it is working locally, when deployed and trying to run through SQL Agent Job, getting error as "Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed".

Already added NewtonSoft JSON dll locally in

C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,648 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 40,896 Reputation points
    2025-02-19T02:43:09.49+00:00

    Hi @Ajay Jha

    Please check your sql server version and make sure it is SQL2016, if it is SQL 2019, please first set the target server version to SQL2019 in VS and add the dll to 150 folder.

    Also make sure the account used to run the job has full permission to the folder.

    Or check if it is a 32bit vs 64bit issue.

    1. Open SQL Server AgentJob Properties.
    2. Go to the Step that runs SSIS.
    3. Click Edit → Go to Execution Options.
    4. Check "Use 32-bit runtime".

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.