Azure REST PUT 或 DELETE 返回 401
我刚刚将基于 WCF REST 的服务上传到 Azure。
当我尝试使用 PUT 或 DELETE 时,收到 401,未经授权:由于凭据无效,访问被拒绝。
它在我的本地和 Azure 开发环境中运行良好,
我见过其他引用证书和权限的帖子。
401 未经 OData 更新和删除授权(已启用 PUT 和 DELETE 动词在 IIS 中,默认情况下)
http://goneale.com/2009/10/22/wcf-the-http-request-is-unauthorized-with-client-authentication-scheme-anonymous/(不适用,因为Azure)
我正在运行默认设置
I've just uploaded my WCF REST based service to Azure.
When I try to use PUT or DELETE I get a 401, Unauthorized: Access is denied due to invalid credentials.
It runs fine in my local and Azure development environments
I've seen other posts referencing Certificates and Permissions.
401 Unauthorized with OData Update and Delete (PUT and DELETE verbs are enabled in IIS, by default)
http://goneale.com/2009/10/22/wcf-the-http-request-is-unauthorized-with-client-authentication-scheme-anonymous/ (doesn't apply because of Azure)
I'm running default settings
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我必须添加
到我的 web.config
http://social.msdn.microsoft.com/Forums/en-US/windowsazuretroubleshooting/thread/514f2e2d-54a8-4516-976d-94a879209173
I had to add
to my web.config
http://social.msdn.microsoft.com/Forums/en-US/windowsazuretroubleshooting/thread/514f2e2d-54a8-4516-976d-94a879209173