Could not load file or assembly Microsoft.IdentityModel or System.Web.Helpers.AntiForgery threw an exception

Plesk Servers > Plesk Control Panel
Issue (Plesk 12.5 for Windows)
 
  • Error observed in Plesk: System.IO.FileLoadException:
    • Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Access is denied. 
 
  • ASP.NET website is not loading after Plesk upgrade. The following error being shown in web browser locally:
    • Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file     required to service this request. Please review the specific error details below and modify your configuration file     appropriately. Parser Error Message: Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0,     Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Access is denied.
 
  • DNN sites are not loading and show error:
    • System.Web.Helpers.AntiForgery threw an exception
 
Cause
 
Broken permissions on file Microsoft.IdentityModel.dll.
 
Resolution
 
Add the following 3 entries to %plesk_dir%\\etc\\DiskSecurity\\DiskSecurity.xml file: 
 
<Entry AccounType="1" Account="Psaadm" Path="{ProgramFilesX86}" SubPath="Reference Assemblies" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="NoAccess" EntryFlags="0" /> 
<Entry AccounType="1" Account="Psacln" Path="{ProgramFilesX64}" SubPath="Reference Assemblies" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="NoAccess" EntryFlags="0" /> 
<Entry AccounType="1" Account="Psaadm" Path="{ProgramFilesX64}" SubPath="Reference Assemblies" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="NoAccess" EntryFlags="0" />
 
below the following entry:
 
<!-- Program Files\\Reference Assemblies --> 
<Entry AccounType="1" Account="Psacln" Path="{ProgramFilesX86}" SubPath="Reference Assemblies" AceFlags="ThisFolderSubfoldersAndFiles" AccessMask="NoAccess" EntryFlags="0" />
 
 

Add Feedback