Pages

Tuesday, August 22, 2017

Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)

Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)


I did windows update and rebooted the SharePoint 2013 Server last week.  The SharePoint Sites are not working including central admin after reboot and got the below Warning Event log and error message when browsed the sites.

Event Log(Event id 1309)




























Error Message:





















Temporary Workaround Solution:

I changed the below entry in one of the web application web. Config file and the site was working fine.
From:
<trust level="Full" originUrl="" legacyCasModel="true" />
To:
<trust level="Full" originUrl="" legacyCasModel="false" />

Cause for the issue:
The SCOM 2016 Agent installed with APM feature on Sharepoint 2013 Server which caused the issue.
The client side .Net Application Performance Monitoring (APM) is not supported in SharePoint. That’s the reason we got the above error message.

Permanent Solution:
We reinstalled SCOM 2016 agent without APM feature through command. The issue was resolved and the sites were working fine after installation of SCOM 2016 Agent without APM Feature.
Used below Command Prompt for SCOM 2016 Agent without APM Feature installation.
MSIEXEC /i MOMAgent.msi NOAPM=1