Sometimes this can happen when you have two or more sites in IIS with the same port number, and when you published the site, you forgot to switch ftp to your target site. In this case, you just need to enable your ftp and try to publish it again. If not:
You can go to the folder on your server where the site was published and change the permissions:
Right click on folder -> Properties -> Security - >Edit
You must set permissions for IIS_IUSRS and Users to allow read and write IIS_IUSRS . If they do not exist, add them and set permissions.
source share