Recently we get such errors in the eventlog:
Monitoring runtime failed: Machine: XXXX: Exception: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
at Microsoft.Crm.Core.DataServices.Configuration.SqlAzure.AzureBlobBasedDatabaseLocationSwitcher.ReadLastKnownDatabaseLocation()
at Microsoft.Crm.Core.DataServices.Configuration.SqlAzure.AzureBlobBasedDatabaseLocationSwitcher..ctor()
at Microsoft.Crm.Core.DataServices.Configuration.SqlAzure.DatabaseLocationSwitcherFactory.GetInstance()
at Microsoft.Crm.CrmDBConnectionFactory.CreateCrmDBConnection(CrmDBConnectionType connectionType, String connectionString, Guid datacenterId)
at Microsoft.Crm.SharedDatabase.DatabaseMetadata.LoadMetadataXmlFromDatabase(CrmDBConnectionType connectionType, String connectionString, Int32& maxBlobSize, Guid datacenterId)
at Microsoft.Crm.ConfigurationDatabase.ConfigurationMetadata.LoadCache(String connectionString)
at Microsoft.Crm.ConfigurationDatabase.ConfigurationMetadata.get_Cache()
at Microsoft.Crm.SharedDatabase.DatabaseService.Initialize(String tableName)
at Microsoft.Crm.SharedDatabase.DatabaseService.RetrieveInternal(String tableName, String[] columns, PropertyBag[] conditions, Nullable`1 top, Nullable`1 offset, IList`1 orderBy, QueryHints hints, IDictionary collectionToFill)
at Microsoft.Crm.SharedDatabase.DatabaseService.Retrieve(String tableName, String[] columns, PropertyBag[] conditions)
at Microsoft.Crm.Monitoring.Engine.MonitoringRuntime.RetrieveServerRolesForMachine(String machineName)
at Microsoft.Crm.Monitoring.Engine.MonitoringRuntime..ctor(TestFrequency testFrequency)
I think this started after an upgrade we did recently, from Dynamics 8.2.2 to 8.2.13.
I’ve looked for Newtonsoft.Json.dll on the applicationserver, and found it in several folders:
C:\users\mmmm\appdata\local\temp\OWP408D,tmp (has the date of the upgrade, version 6.0.5.17707)
C:\windows\$CRMuninstalxxxx (several)
C:\windows\microsoft.net\framework64\...temporary asp.netfiles…
I find none in c:\windows\assembly
Do I have the wrong version of the file, is it in the wrong folder,…?
Any help would be appreciated.
PS
The reactions speak about plugins (I don't think monitoringruntime is a plugin) an ILmerge (it seems to mee that I should not need to use such tools when I've only installed the software delivered by Microsoft).