Error Message
PNG
Console
Returned exception from API call ADSModule/UpdateTargetInfo
FileLoadException
[0] (FileLoadException) : Could not load file or assembly 'Newtonsoft.Json, Version=9.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)
at SQLiteNetExtensions.Extensions.TextBlob.Serializers.JsonBlobSerializer.Serialize(Object element) at SQLiteNetExtensions.Extensions.TextBlob.TextBlobOperations.UpdateTextBlobProperty(Object element, PropertyInfo relationshipProperty) at SQLiteNetExtensions.Extensions.WriteOperations.RefreshForeignKeys(Object element) at SQLiteNetExtensions.Extensions.WriteOperations.UpdateWithChildren(SQLiteConnection conn, Object element) at GSMyAdmin.Providers.SQLiteDataProvider.Update[T](T obj) at ADSModule.RemoteADSController.UpdateInfo(Guid InstanceId, String FriendlyName, Uri Url, String Description, List`1 Tags) at ADSModule.WebMethods.UpdateTargetInfo(Guid Id, String FriendlyName, Uri Url, String Description, List`1 Tags) at GSMyAdmin.WebServer.WebAttributes.InvokeMethod(String MethodName, JObject Data, IHttpRequest request, IWebSession Session, WebMethodsBase MethodsClass, String RawRequest) at GSMyAdmin.WebServer.APIService.InvokeAPI(IHttpRequest request, IWebSession Session, JObject Data, String RequestModule, String RequestMethod, String RawRequest)
The Problem
Targets won’t update.
Trobblesuting
- restarting the controller server
- checking the connection
- As, Mike suggested doing this
Server & Version information
Server
Controller Hybrid Mode
Windows 10 Enterprise
64GB RAM
40TB storage
Target 1
Windows 10 Enterprise
32GB RAM
8TB Storage
Target 2
Ubuntu 20.04
16GB RAM
2TB Storage
AMP
AMP Release “Triton”
v2.3.4.4, built 26/07/2022 20:08
All on The Same Version
Please fill in all of the information from the original template. You’ve omitted most of the required information.
Along side the targets AMP.exe
file on the Windows target - create a file called AMP.exe.config
and put this in it:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.InteropServices.RuntimeInformation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="CommonServiceLocator" publicKeyToken="489b6accfaf20ef0" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.5.0" newVersion="2.0.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v13.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
Then restart the target.