Our client developped with SDK is working in standalone application but if I generate a dll library and using it in another application I receive unusedexception3 when I call Environment.Login Istruction. In particular the error is “Could not load file or assembly 'Newtonsoft.Json”.
The NuGetPackage SDK used is MilestoneSystems.VideoOS.Platform.SDK 25.2.1
Check whether you use Newtonsoft.Json elsewhere, and check the version used. You might need to do a assembly redirect.
I don’t use Newtonsoft.json in my user control library, It is probably used by one dll from NuGet Milestone package and for some reason she is looking for a version not present in the NuGet Package. In NuGet Package there is 13.0 version but the error writes that search the 6.0 version
You need to do a assembly redirect.
Looking at a component sample (ImageViewerClient.exe.config) I see:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" /></dependentAssembly></assemblyBinding>
PS. For future use of this forum a tip: If you had given the details about the error, we could have been more to the point in our first answer. So please try to include the full error when reporting that you see an error.
Hi,
I am also encountering a runtime exception after updating VideoOS.Platform.SDK to the latest version (25.2.3). The App.config file contains the lines mentioned above, but I am still receiving the following error. How do I fix this exception?
Additionally, after the update, I noticed that the project now includes many more packages compared to the previous setup. Could you please advise on how to determine which packages are required for the project?
Additionally, after the update, I noticed that the project now includes many more packages compared to the previous setup. Could you please advise on how to determine which packages are required for the project?
Thanks in Advance!