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

前端 未结 6 501
野趣味
野趣味 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:51

    You can follow this approach while deploying the application to production environment.

    1. Publish the application in release mode.
    2. Put your application in inetpub -- wwwroot folder because this folder have administrator rights.

    Hopefully it should run.

提交回复
热议问题