我試圖將文件上傳到Windows Azure存儲blob。我覺得我正在嘗試一些非常基本的東西。我有一個新的ASP.NET MVC 4 Web應用程序(如在文件 - >新建項目中...)。當我到達下面顯示的「CloudStorageAccount.FromConfigurationSetting」的行時,會引發異常。這個例外有如下信息:無法將文件上傳到Windows Azure Blob
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");
我在做什麼錯?