SymptomsWhen trying to open the ASP.NET webpage, you receive the following error in your browser:
Parser Error Message: Could not load file or assembly 'System.ServiceModel, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied.
CauseThe error is caused by incorrect permissions on .NET assemblies.
ResolutionPlease set up correct permissions for the .NET assemblies with the following commands:
cacls C:\Windows\assembly\GAC_MSIL /E /R psacln /T /C
cacls C:\Windows\assembly\GAC_MSIL /E /R psaadm /T /C
cacls C:\Windows\assembly\GAC_32 /E /R psacln /T /C
cacls C:\Windows\assembly\GAC_32 /E /R psaadm /T /C
With these commands, denied permissions are removed for the groups psacln and psaadm.
Restart IIS to complete the operation.