In this article I will give you a step by step guide on how to grant permission to IIS to access to your web.config file
If you are working in vs.net this is not a problem because the emulator create a temporal server put went you are going to export your site to an IIS server, you need to granted permissions.
1. Open IIS Manager 7. Under sites find the site that you are trying to access and do right click on it, click on “Edit permission“:
2. On the Security tab, click on edit:
3. Now, click on “Add“:
4. A Select User window will appear. Click on “Advanced“:
5. Click on “Find now“, and select following users:
And that is all, you have access to your web.config and the error have been fixed!
This concludes Grant permission to access web.config