Loading this assembly would produce a different grant set from other instances.

Problem

Błąd w Event Logu: Loading this assembly would produce a different grant set from other instances.
Na środowisku z SharePoint 2016 zainstalowany jest SCCM Monitoring Agent 2016.

Rozwiązanie

Przeinstalowanie monitoring agenta bez APM(Client-side .NET Application Performance Monitoring)

msiexec /i momagent.msi NOAPM=1