我正进入(状态The connection string is missing a required property: AccountEndpoint
使用时出错new CosmosClient(CosmosConnectionString)
构造函数CosmosClient
带装配Microsoft.Azure.Cosmos.Client, Version=3.11.0.0
- 如何修复它?帐户的连接字符串如下所示(AccountEndpoint 丢失:
DefaultEndpointsProtocol=https;AccountName=devdb;AccountKey=xxxx;TableEndpoint=https://devdb.table.cosmos.azure.com:443/;
您指定的连接字符串用于连接到 Azure 存储帐户(当您使用Azure.Storage.*
Nuget 包)或面向 Table API 的 Cosmos DB 帐户(当您使用 (Microsoft.Azure.Cosmos.Table
包裹)。
使用以下命令连接到 Cosmos DB 帐户Microsoft.Azure.Cosmos
包中,连接字符串必须指定AccountEndpoint=https://account-name.documents.azure.com:443/;AccountKey=account-key;
format.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)