Error Newtonsoft.Json

Error Newtonsoft.Json

albanesmolina
Contributor Contributor
2,216 Views
8 Replies
Message 1 of 9

Error Newtonsoft.Json

albanesmolina
Contributor
Contributor

Hello, this is the first time I try Insight with a free model from Grabcad and I got this error:

 

SEM 2 HOUSE DESIGN Error Report (2/27/2019 4:00:21 PM)

 

 

Error message
Elements

Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

What does it mean and what can I do?

 

0 Likes
2,217 Views
8 Replies
Replies (8)
Message 2 of 9

albanesmolina
Contributor
Contributor

On a secong trial I got this new error: 

Error message
Elements
A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
0 Likes
Message 3 of 9

scheerd
Alumni
Alumni

Newtonsoft.json is a required dll installed with Revit and used by Lighting.

What version of Revit and Insight are you using?

The Newtonsoft dll is in the C:\Program Files\Autodesk\Revit 20XX folder.

 

 

Message 4 of 9

albanesmolina
Contributor
Contributor

dll.png

Thank you, I checked and this dll is in my laptop. I am using Revit 2017 that was updated just 2 days ago.What else can it be? My insight is also the last version from 2 days ago


@scheerd wrote:

Newtonsoft.json is a required dll installed with Revit and used by Lighting.

What version of Revit and Insight are you using?

The Newtonsoft dll is in the C:\Program Files\Autodesk\Revit 20XX folder.

 

 


 

0 Likes
Message 5 of 9

albanesmolina
Contributor
Contributor

I updated my version to 2019 and the error seems to be cause by the lack of mass of the model I have. I will try to get a complete model to try again

0 Likes
Message 6 of 9

scheerd
Alumni
Alumni

It looks like one of the references to NewtonSoft.Json.Dll in the current release points to this location:

C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics\NewtonSoft.Json.dll

That dll is normally loaded from the usual location in the Revit Program Files when Revit opens, but in case you have an odd installation or something, Insight may look for it in the location above.  If you don't have that folder on your computer, I would suggest creating the folder and copying the NewtonSoft dll to the folder and see if that resolves anything.

David

Message 7 of 9

albanesmolina
Contributor
Contributor

Thanks, my system won't accept the \ symbol when creating the file ?

0 Likes
Message 8 of 9

scheerd
Alumni
Alumni

Apologies, this is a bit of a wonky developer thing.

I copied the path from my dev environment in which the '/' character must be written as '\' to be accepted due to it being a 'special character.

 

Here are some detailed steps that I hope will help:

  1. If it doesn't exist, create the folder:  
    C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9\bin\plugins\Diagnostics
    (Note, you may have to start at C:\Program Files, then drill down and create the parent folders wherever they don't exist)
  2. Go to:
    C:\Program Files\Autodesk\Revit 2019
    (or whatever your version of Revit)
  3. Copy the file NewtonSoft.Json.dll
    (single click on it, then ctrl-C)
  4. Go to your new folder from step 1, and paste the file there

David

0 Likes
Message 9 of 9

CADbloke
Advocate
Advocate

Check out https://forums.autodesk.com/t5/navisworks-api/could-not-load-file-or-assembly-newtonsoft-json/m-p/74...

- - - - - - -
working on all sorts of things including www.tvCAD.tv & www.CADreplace.com
0 Likes