0
我試圖編寫一個從Microsoft.WindowsAzure.Storage.Blob
命名空間延伸CloudBlobController
的類。試圖從CloudBlobController繼承導致404錯誤
類是:
Public Class BlobController(Of T)
Inherits CloudBlobContainer
Public Sub New(BlobStoreName As String)
MyBase.New(New Uri(IO.Path.Combine(
CloudStorageAccount.Parse(CloudConfigurationManager.
GetSetting("StorageConnectionString")).BlobEndpoint.AbsoluteUri,
BlobStoreName.ToLower)),
New Auth.StorageCredentials(CloudConfigurationManager.GetSetting("StorageConnectionString")))
CreateIfNotExists()
End Sub
End Class
基類的初始化調用成功,我可以看到在監視窗口類的屬性。 Uri匹配已經退出但在CreateIfNotExits
調用中出現404錯誤結果的blob容器。