azure - 无法访问 Azure API 应用程序。 Swagger 文档在 Azure Web 门户中运行良好

标签 azure visual-studio-2013 asp.net-web-api2 azure-web-app-service swagger

通过 Visual Studio 2013 发布我的 Azure API 应用程序后,我无法访问任何 REST 终结点。 (Azure Web 门户显示了 swagger 文档)。 See here .

当访问 API 应用程序 URL 时,我收到以下页面,并显示此错误消息:

Correlation ID: b2228863-3f90-4235-xxxx-xxxxxxxxxx

Timestamp: 2015-04-06 07:48:59Z

AADSTS50011: The reply address 'https://microsoft-apiapp497f3b72e6ef485189341ae1ea31bddb.azurewebsites.net/' does not match the reply addresses configured for the application: abfa0a7c-a6b6-4736-xxxx-xxxxxxxxxxx.

我已多次尝试重新创建 API 应用程序,并尝试重新发布。 API 应用程序访问级别设置为公共(public)(匿名),因此无需登录即可向所有人公开。我尝试使用 Azure AD 身份验证对其进行配置,但也不起作用。

最佳答案

此错误似乎与 App Insight 有关。根据 2015 年 4 月 3 日的帖子,微软已意识到该问题并正在努力修复。

https://social.msdn.microsoft.com/Forums/en-US/96eeb06c-8157-4a4f-9d3a-4fa3eced5c55/authentication-failure-on-new-api-app-even-though-authentication-is-disabled?forum=AzureAPIApps

取消选中项目选项中的 Azure Insights 应允许您使用 API 进行测试。

关于azure - 无法访问 Azure API 应用程序。 Swagger 文档在 Azure Web 门户中运行良好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29467520/

相关文章:

asp.net - 未在发布时更新 Web API 的 XML 帮助文档

azure - 如何使用 ADAL.js 并对 Web API 和 Azure AD 启用安全 CORS 调用

javascript - 使用 Chutzpah 运行 QUnit (TypeScript) 测试给出 "Called start() outside of a test context while already started"

c++ - Visual Studio 2013 中的函数模板替换错误?

c++ - 如何在 Microsoft Visual Studio 2013 中的同一解决方案中执行不同的 C++ 文件?

javascript - 无法在 Angular js 中获得 promise

azure - 无法运行附加到 Azure 网站的 Azure WebJob ManualTrigger

asp.net - session 状态的 Azure 协同定位缓存最大项目大小

azure - 减少网站中 Azure 消耗的最佳实践

asp.net-web-api2 - WEB API 2,Selfhost,除 "localhost"之外的所有访问都被拒绝