【问题标题】:You do not have permission to view this directory or page. Azure Web Api您无权查看此目录或页面。 Azure Web API
【发布时间】:2016-09-02 02:48:15
【问题描述】:

我在项目project structure 的根目录中有一个带有文档(swagger)文件夹的 web api 项目 在本地,我可以查看带有类似

的路线的页面
http://localhost:9941/documentation/

但是当我将这个项目部署到天蓝色时,通过部署中的相同 url 授予我权限错误

http://mywebsite.azurewebsites.net/documentation/

错误信息:

您无权查看此目录或页面。

网络配置

 <system.web>       
    <authentication mode="None" />
    <compilation debug="false" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />       
  </system.web>

【问题讨论】:

  • 您是否查看了应用服务中的身份验证/授权设置?

标签: asp.net azure asp.net-web-api window swagger


【解决方案1】:

这是由于您的应用程序部署不完整。重新启动或删除并重新上传应该可以解决问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-29
    • 2021-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多