Azure DocumentDB所有者资源不存在 [英] Azure DocumentDB Owner resource does not exist
问题描述
我遇到了相同的错误icrosoft.Azure.Documents.DocumentClientException:消息:{错误":[所有者资源不存在"]},这是我的情况.当我将Web应用程序部署到Azure并尝试从docDb获取一些文档时,会引发此错误. docdb以天蓝色存在,并且包含我要查找的文档.
I having the same error icrosoft.Azure.Documents.DocumentClientException: Message: {"Errors":["Owner resource does not exist"]} , this is my scenario. When I deployed my webapp to Azure and try to get some document from docDb it throws this error. The docdb exists in azure and contains the document that i looking for.
奇怪的是,从我的本地计算机(从VS运行)可以正常工作.我在Azure和本地使用相同的设置.有人对此有想法.
The weird is that from my local machine(running from VS) this works fine. I'm using the same settings in Azure and local. Somebody have and idea about this.
谢谢
推荐答案
所有者资源不存在
Owner resource does not exist
发生错误的数据库名称.
occurs when you have given a wrong database name.
例如,当使用client.readDocument(..)
读取文档时,客户端是DocumentClient
实例,而docLink
中给出的数据库名称是错误的.
For example, while reading a document with client.readDocument(..)
, where the client is DocumentClient
instance, the database name given in docLink
is wrong.
这篇关于Azure DocumentDB所有者资源不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!