无法访问Azure Cosmos DB

编程入门 行业动态 更新时间:2024-10-19 10:22:09
本文介绍了无法访问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 ="azurecosmostd.documents.azure: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="azurecosmostd.documents.azure: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)端口号的操作?诸如此类:< add key ="endpoint" value =" azurecosmostd.documents.azure/"/>

Also, have you attempted this without the (443) port number? Something like this:<add key="endpoint" value="azurecosmostd.documents.azure/"/>

请让我知道您正在关注的特定教程.谢谢!

Please let me know the specific tutorial you are following. Thank you!

更多推荐

无法访问Azure Cosmos DB

本文发布于:2023-11-17 02:25:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608472.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法访问   Azure   DB   Cosmos

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!