asp.net-mvc - 部署 azure 应用程序

标签 asp.net-mvc mongodb azure mongodb-.net-driver

我有一个windows azure项目的源代码。如果我取消注释以下行,解决方案中的 Web 项目可以正常工作:

<!-- add key="MongoDB.ConnectionString" value="mongodb://nameofx.cloudapp.net:27293" / -->

我注册了一个新的 Windows Azure 试用帐户,现在我想将云服务部署到我的新帐户。我必须更新服务配置的哪些部分以及我必须在 Windows Azure 门户 ( https://manage.windowsazure.com/ ) 中执行哪些操作?

这是我的解决方案的云项目的屏幕截图。

enter image description here

在管理面板中创建云服务并尝试上传包后,出现以下错误:

The certificate with thumbprint 919691b3c381b92cc314c316ffcc12903967673e was not found.

这是配置的证书部分:

<Certificates>
    <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="919691B3C381B92CC314C316FFCC12903967673E" thumbprintAlgorithm="sha1" />
    <Certificate name="Test.InvestorAccountEncryption" thumbprint="6053B67BC5BECEFE4E2090B1C86F592D4358B3A2" thumbprintAlgorithm="sha1" />
    <Certificate name="test.aaa.com" thumbprint="C3B019A7C220CF155C1275E7F3209A94378E2384" thumbprintAlgorithm="sha1" />
    <Certificate name="Test" thumbprint="673398470B32371B06116F7A0B06046EDAC2BF57" thumbprintAlgorithm="sha1" />
</Certificates>

提前致谢,

最佳答案

它提示的指纹是您的RDP 连接 (Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption)。默认情况下,Azure SDK 将使用与发布期间进行身份验证相同的 Windows Azure Tools 证书。

您需要配置 RDP(远程桌面)证书。要进行配置,只需在 Visual Studio 中右键单击 Azure 项目,然后选择配置远程桌面...。这将打开一个提示,并允许您为 RDP 正确设置身份验证证书。

如果您不直接从 Visual Studio 发布,那么您将不会拥有 Windows Azure Tools 证书和 you will need to create your ownupload it via the portal role certificates section 。这是much easier to just publish directly from Visual Studio .

一旦您的角色实例正在运行,您就可以manage the RDP Certificate and Login from within the Management Portal by using the Configure->Remote action .

关于asp.net-mvc - 部署 azure 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16834955/

相关文章:

node.js - 如何在 mongoDB 中编写连接查询..?

azure - 尝试将 docker 推送到 Azure 容器注册表时出现 "unauthorized: authentication required"

asp.net-mvc - 是否可以为所有 Controller 全局设置[Authorize]属性?

asp.net-mvc - RedirectToLocal() 转到不同的 url

asp.net - 在 Razor View 中渲染 Telerik MVC Grid 时出现问题

c# - 将查询字符串作为路由值字典添加到 ActionLink

mongodb - 如何使变量成为 Mongoose 中的唯一键?

mongodb - 在API端点中使用mongodb对象ID的base64编码是否安全?

asp.net - Blazor WebAssembly PWA session 存储在部署到 Azure 后不会保留

azure - 如何将管理访问权限委派给我的订阅上的第二个 Azure AD 目录?