【发布时间】:2020-10-13 12:59:54
【问题描述】:
我们在 Visual Studio 2017 中发布了一个使用 FTP 选项的应用程序,其托管 URL ex-https://my.base.url,我可以通过点击https://my.base.url/api/getMethod 访问我的 api。 我有另一个 api,我想像 https://my.base.url/app2/api/getMethod 一样发布和访问,而旧的将是 https://my.base.url/app1/api/getMethod。 所以我发布了这样的代码。 enter image description here
当我通过 ftp://my.base.url/app1 检查文件时,我可以看到部署的文件,但是当我使用 https://my.base.url/app1/api/getMethod 访问相同的文件时,我得到 403 access denied 。我该如何验证和解决。这是具有 web.config 和 global.asax 的旧 Web api 项目。我没有直接访问 iis 的权限,但即使它与 iis 问题有关,我们如何验证
【问题讨论】:
标签: c# iis asp.net-web-api ftp http-status-code-403