August 9th, 2012, 11:14 PM
Defauld authorization entry for anonymous users has been removed in IIS 8
In my program, I am using appcmd.exe tool to modify the configuration in applicationHost.config. There I am trying to remove the authorization entry for anonymous users (<add accessType="Allow" users="*" />). This command used is as follows;
appcmd.exe SET config /section:system.webServer/security/authorization /-[accessType='Allow',users='*'] /commit:apphost
This works well in IIS 7 and end up with following error in IIS 8 (on windows 2012 server)
ERROR ( message:Cannot find requested collection element. )
Later I Found that there is no such an entry by default in applicationHost.config in IIS8 though it exists in IIS7.
Does anyone know any specific reason for removing that in IIS 8?