尝试连接到Blob存储时出现错误 [英] Getting error when trying to connect to blob storage

查看:156
本文介绍了尝试连接到Blob存储时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是错误:

Microsoft.WindowsAzure.ServiceRuntime信息:100:角色 环境 .初始化

Microsoft.WindowsAzure.ServiceRuntime Information: 100 : Role environment . INITIALIZING

Microsoft.WindowsAzure.ServiceRuntime信息:100:角色 环境 .初始化返回. HResult = -2147024894

Microsoft.WindowsAzure.ServiceRuntime Information: 100 : Role environment . INITIALED RETURNED. HResult=-2147024894

Microsoft.WindowsAzure.ServiceRuntime错误:102:角色环境. 未能初始化. hr:-2147024894

Microsoft.WindowsAzure.ServiceRuntime Error: 102 : Role environment . FAILED TO INITIALIZE. hr: -2147024894

从ServiceRuntime获取"StorageAccountName":失败.

Getting "StorageAccountName" from ServiceRuntime: FAIL.

从ConfigurationManager中获取"StorageAccountName":失败.

Getting "StorageAccountName" from ConfigurationManager: FAIL.

从ServiceRuntime获取"StorageAccountKey":失败.

Getting "StorageAccountKey" from ServiceRuntime: FAIL.

从ConfigurationManager中获取"StorageAccountKey":失败.

Getting "StorageAccountKey" from ConfigurationManager: FAIL.

好吧,这是什么,我该如何解决?

Okay what is this and how do i fix it?

信息:

具有天蓝色blob连接的MVC应用程序.

MVC application with azure blob connection.

推荐答案

您甚至可以在本地云服务之外运行网站.关键只是在应用程序的web.config上包含值.

You can run your website even outside the local cloud service. The key is simply to have the values on the web.config of your application.

因此,在您的情况下,只需将"StorageAccountName"和"StorageAccountKey"的值添加为AppSettings和CloudConfiguration.GetSetting将找到它们.

So in your case simply add the values for "StorageAccountName" and "StorageAccountKey" as AppSettings and CloudConfiguration.GetSetting will find them.

这篇关于尝试连接到Blob存储时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆