HTTP 403 Forbidden: Access is denied ASP.NET Web API

前端 未结 6 497
野趣味
野趣味 2021-01-12 01:54

I\'m getting the following error when running our ASP.NET Web API project on our production server.

403 - Forbidden: Access is denied. You do not hav

6条回答
  •  孤城傲影
    2021-01-12 02:30

    The above error will pop up when you do not have the permission to access the folder/web.config file.

    Try the following

    1. In Windows Explorer, locate the web.config file that is associated with the application.
    2. Right-click the web.config file
    3. Click Properties.
    4. Click the Security tab, and then click Edit.
    5. Click Add.
    6. In the Enter the object names to select box, IUSR, click Check Names, and then click OK.
    7. Provide Full control, and then click OK.
    8. In the Web.config Properties dialog box, click OK.

    I think it should work .

提交回复
热议问题