Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

MSCRMonitoring runtime error message

Posted on by 120

HI,

Recently updated to CRM 2016 8.2.7.13. I am getting below error message in event viewer. 

---------------------------------------------------

Monitoring runtime failed: Machine:  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)

InnerException Type:System.IO.FileNotFoundException

----------------------------------------------

All the functionalities are looking great, but event viewer is filling up with above error messages. 

Categories:
  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: MSCRMonitoring runtime error message

    Hi partner,

    I'm glad to hear that you have resolved your problem.

    The KB4494412 may updated the version of Newtonsoft.dll to 6.0.0.0 so that the original file 6.0.5.17707 is not supported any more.

    If my answer helped you, please mark my answer as verified so that we could help other people with similar issues :)

    Have a nice day.

    Best Regards,

    Leo

  • thomas.s Profile Picture
    thomas.s 120 on at
    RE: MSCRMonitoring runtime error message

    I copied Newtonsoft.Json.dll in Monitoring\bin folder, and no more errors in event viewer. But not sure how that happened with KB4494412.

  • thomas.s Profile Picture
    thomas.s 120 on at
    RE: MSCRMonitoring runtime error message

    This is all happened with update Kb4494412. I can see that in the CRM folder the Newtonsoft.Json.dll version is 6.0.5.17707.  I cant find the reference of version 6.0.0.0 any where in the server.  Also i have another environment with same dll but without this update and its working fine. But this environment eventviewer is filling up with this error message. 

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: MSCRMonitoring runtime error message

    Hi partner,

    Are you using On-Primise instance?

    According to the error message, your program is missing the "Newtonsoft.Json.dll" and its version is "6.0.0.0", please check the CRM folder and check if the "Newtonsoft.Json.dll"'s version are the same in folder and web.configer.

    You could also refer to this post.

    https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/240343/could-not-load-file-or-assembly-newtonsoft-json-or-one-of-its-dependencies

    Hope it helps.

    Best Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans