This error may occur when publishing an application to IIS.
Please refer to the following StackOverflow post.
Publishing Website Error : This access control list is not in canonical form and therefore cannot be modified
The required steps to rectify this error are:
- Open the IIS Manager.
- Right click on the application that you are publishing and select Edit Permissions.
- Select the Security tab.
- A message box will appear telling you that the permissions are not correctly ordered.
- Click Reorder on that message box.
Alternatively, you can use the Microsoft utility, icacls.exe, to check and reset the permissions.
icacls.exe C:\inetpub\wwwroot /verify /T /C /L /Q
icacls.exe C:\inetpub\wwwroot /reset /T /C /L /Q
Once rectified, republish the application.