i worked it out now xDYou need to give your root folder permissions.
- Right click on the root folder of your website and go to properties.
- Head over to the Security tab and click on Edit.
- Click on Add and first add IUSR to the object names and click OK. Now give it Full control and click on apply.
- Do the same for IIS_IUSRS.