DSS Rest Api references old Newtonsoft.Json Assembly
In our project we referenced ThomsonReuters.Dss.RestApi.Client.dll which in turn is depending on Newtonsoft.json 9.0.0.
Since we have updated our Project References to Newtonsoft.json 11.0.2 (the latest) we get Assembly Resolve Exception when using DSS.
Is there a version of the DSS Rest API available which references Newtonsoft.Json 11.0.2?
Best Answer
-
@wk_deprecated_0, the development team just told me that version 12.1 of the SDK (released yesterday Monday 16 July) shipped with version 11.0 of Newtonsoft. The new SDK is available here. I will upload it to the DSS downloads later today.
0
Answers
-
it is true that our C# example application and samples use Newtonsoft.Json version 9.
To check how they behave with version 11, I downloaded the latest Newtonsoft.Json, as a zip file, to be able to manually select which DLL version to test. In Visual Studio I changed the reference from the 9.0 DLL to the portable-net40+win8+wpa81+wp8+sI5 11.0 version (the one highlighted in the screenshot), and ran a few samples and tutorials, which all worked fine. I did not manually edit any other references.
You do not give much detail. Exactly which version of the 11.0 DLL did you use ? Can you try a different one ? The dependencies vary ...
0 -
Hello Christiaan,
thanks for looking into this.
I can imagine that you will not get the error in most of the cases, since it seems that the DSS Api only utilizes Newtonsoft.Json in case of a validation error.
We execute our request as so:var extractionsContext = new ExtractionsContext(... // settings //)
var request = new CompositeExtractionRequest { IdentifierList = instrumentIdentifierList, ContentFieldNames = ricFieldsArray };
var result = extractionsContext.ExtractWithNotes(request);
This works in the majority of cases! Only irregularly we get an exception that Newtonsoft.Json 9.0.0 could not be found (since we only have Newtonsoft.Json 11.0.2).
Newtonsoft.Json is indeed only used in case something went wrong - specifically where some Validation Error occurs - this is the stacktrace I see:
at ThomsonReuters.Dss.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.ParseValidationErrors(HttpHeaders headers)
at ThomsonReuters.Dss.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.ParseODataError(String mediaType, String body, HttpHeaders headers)
at ThomsonReuters.Dss.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<ParseResponseError>d__1b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at ThomsonReuters.Dss.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<HandleExceptions>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---As you can see, the error occurs within the method "ParseValidationErrors" - which indicates to me that Newtonsoft.Json is only used in case some validation errors are actually returned... I confirmed this by looking at the decompiled source (Reflector).
Does this make sense to you? Can you verify that "ParseValidationErrors" is ever called within your test harness?
Thanks for you help!
Kind regards,
Wolfgang0 -
Please try to use binding redirect to redirect assembly versions. For example, the below is configurations in App.config.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>0 -
@wk_deprecated_0, did you try the latest SDK version ? It has Newtonsoft.Json 11.0
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 705 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 3K Elektron
- 1.5K EMA
- 259 ETA
- 569 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.2K Refinitiv Data Platform
- 879 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 123 Open DACS
- 1.1K RFA
- 108 UPA
- 196 TREP Infrastructure
- 232 TRKD
- 919 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 103 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛