无法访问Azure Cosmos DB [英] Unable to Access to Azure Cosmos DB
问题描述
虽然我正在学习ASP MVC教程:使用Azure Cosmos DB进行Web应用程序开发,但遇到了一个我不知道如何解决的错误.请帮助提供信息以解决该错误.
While I am learning the ASP MVC tutorial: Web application development with Azure Cosmos DB, I ran into an error that I do not know how to resolve. Please help to provide information to resolve the error.
这是我收到的错误消息:"无法读取配置部分"add"因为它缺少节声明".在WebConfig文件中 是导致错误的行"<添加键=端点"; value ="https://azurecosmostd.documents.azure.com:443/"/> "
Here is the error message that I have: "The configuration section 'add' cannot be read because it is missing a section declaration". In the WebConfig file there is a line that causes the error "<add key="endpoint" value="https://azurecosmostd.documents.azure.com:443/"/>"
我确定错误不是来自端点密钥中的值的,因为我可以使用同一个密钥来访问Azure Cosmos DB练习使用控制台应用程序的教程.在中创建数据库 Azure Cosmos DB没有任何错误.
I am sure is the error does not come from the value in the endpoint key since I was able to use the same key to access to Azure Cosmos DB while I am practicing the tutorial that uses the Console App. to create a database in Azure Cosmos DB without any error.
最好的问候
推荐答案
StephanieSoft,您好,
Hi StephanieSoft,
能否提供您正在关注的教程的链接?我认为是这样的: ASP.NET MVC 5入门
Can you provide a link to the tutorial you are following? I assume it is this one: Getting Started with ASP.NET MVC 5
此外,您是否尝试过不使用(443)端口号的操作?诸如此类:
Also, have you attempted this without the (443) port number? Something like this: <add key="endpoint" value="https://azurecosmostd.documents.azure.com/"/>
请让我知道您正在关注的特定教程.谢谢!
Please let me know the specific tutorial you are following. Thank you!
这篇关于无法访问Azure Cosmos DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!