Skip to main content
Solved

Could not load file or assembly


Forum|alt.badge.img

Hi,

 

I’m looking for a few pointers on how to resolve an issue caused by an upgrade of one of our live sites.  The upgrade was from 2022.1121.302.452 to 2022.2.205.103.4522 and occurred last week.  The symptoms are the same as outlined in the post below except that:

  • Issue is ocuring on a Live site not a local install
  • Error message relates to Newtonsoft: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

 

 

The assembly being used in the customisation is Newtonsoft 13.0.3.  In the WebConfig file on the local instance which doesn’t throw this error there is:

The customisation on the local site works fine despite the version being outside 13.0.03 being outside the range.  I don’t know how or if you can change the web.config file on a live site.

Maybe this is something that only support can resolve?

Thanks in advance for any help,

John.

 

 

 

 

Best answer by RohitRattan88

@JWS539 

Please note that the error points to a compatibility issue.

Acumatica out-of-the-box already uses Newtonsoft.json dll. So you must update your project to use the same version(or compatible) version as their Acumatica instance.

 

To verify Acumatica dll version, create same built instance locally, and then right click on that dll file and do Properties

For example locally I have 2022R207:

image

 

Then update your project to use the same version(or compatible) of Newtonsoft dll

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • Varsity I
  • 63 replies
  • August 6, 2023

Hi,

Further to the above I tried publishing the customisation using Newtonsoft version 12.0.1 (which was released in 2019), and the error messages went away.  Still would like to understand why version 13 suddenly stopped working after an upgrade though.

Thanks,

John.

 


RohitRattan88
Acumatica Moderator
Forum|alt.badge.img+4
  • Acumatica Moderator
  • 245 replies
  • Answer
  • August 7, 2023

@JWS539 

Please note that the error points to a compatibility issue.

Acumatica out-of-the-box already uses Newtonsoft.json dll. So you must update your project to use the same version(or compatible) version as their Acumatica instance.

 

To verify Acumatica dll version, create same built instance locally, and then right click on that dll file and do Properties

For example locally I have 2022R207:

image

 

Then update your project to use the same version(or compatible) of Newtonsoft dll


Forum|alt.badge.img
  • Author
  • Varsity I
  • 63 replies
  • August 12, 2023

Hi RohitRattan88,

 

Thanks for taking the time to answer my question.  


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings