Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Monitoring runtime cannot find Newtonsoft.Json version 6

Posted on by 5

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

I've seen https://community.dynamics.com/365/sales/f/dynamics-365-for-sales-forum/370503/caould-not-load-file-or-assembly-newtonsoft-json-version-6-0-0-0-culture-neutral-publickeytoken-30ad4fe6b2a6aeed-or-one-of-its-dependencies-on-crm-365-server-event-viewer,

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).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans