【发布时间】:2013-01-01 01:56:47
【问题描述】:
我正在尝试将文件上传到 Windows Azure 存储 Blob。我觉得我正在尝试一些非常基本的东西。我有一个新的 ASP.NET MVC 4 Web 应用程序(如 File->New Project...)。当我到达下面显示的“CloudStorageAccount.FromConfigurationSetting”行时,会引发异常。该异常具有以下信息:
Type: System.Runtime.InteropServices.SEHException
Message: External component has thrown an exception.
这是我的代码:
// Setup the Windows Aure blob client
CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetting) => configSetting(RoleEnvironment.GetConfigurationSettingValue(configName)));
CloudStorageAccount storageAccount = CloudStorageAccount.FromConfigurationSetting("BlobStorage");
我做错了什么?
【问题讨论】:
标签: c# .net asp.net-mvc-4 azure-storage azure-blob-storage