簡體   English   中英

在Azure中掛載CloudDrive快照時出錯

[英]Error mounting CloudDrive snapshot in Azure

我已經在dev中運行雲驅動器快照已有一段時間了,沒有問題。 我現在正在嘗試使它在Azure中工作。

我無法一輩子讓它工作。 這是我最新的錯誤:

Microsoft.WindowsAzure.Storage.CloudDriveException: Unknown Error HRESULT=D000000D --->

Microsoft.Window.CloudDrive.Interop.InteropCloudDriveException: Exception of type 'Microsoft.WindowsAzure.CloudDrive.Interop.InteropCloudDriveException' was thrown.

   at ThrowIfFailed(UInt32 hr)

   at Microsoft.WindowsAzure.CloudDrive.Interop.InteropCloudDrive.Mount(String url, SignatureCallBack sign, String mount, Int32 cacheSize, UInt32 flags)

   at Microsoft.WindowsAzure.StorageClient.CloudDrive.Mount(Int32 cacheSize, DriveMountOptions options)

知道是什么原因造成的嗎? 我在Azure中同時運行了WorkerRole和Storage,因此與開發模擬環境的斷開連接無關。

這是我安裝快照的代碼:

        CloudDrive.InitializeCache(localPath.TrimEnd('\\'), size);

        var container = _blobStorage.GetContainerReference(containerName);
        var blob = container.GetPageBlobReference(driveName);

        CloudDrive cloudDrive = _cloudStorageAccount.CreateCloudDrive(blob.Uri.AbsoluteUri);
        string snapshotUri;
        try
        {
            snapshotUri = cloudDrive.Snapshot().AbsoluteUri;

            Log.Info("CloudDrive Snapshot = '{0}'", snapshotUri);
        }
        catch (Exception ex)
        {
            throw new InvalidCloudDriveException(string.Format(
                    "An exception has been thrown trying to create the CloudDrive '{0}'. This may be because it doesn't exist.",
                    cloudDrive.Uri.AbsoluteUri), ex);
        }

        cloudDrive = _cloudStorageAccount.CreateCloudDrive(snapshotUri);

        Log.Info("CloudDrive created: {0}", snapshotUri, cloudDrive);

        string driveLetter = cloudDrive.Mount(size, DriveMountOptions.None);

最后的.Mount()方法現在失敗了。

請幫忙,因為這使我陷入了困境!

提前致謝。

戴夫

昨晚我終於把這個工作了。 我所做的就是創建一個新容器並將其VHD上傳到其中,因此我不確定舊容器是否發生了奇怪的事情……? 想不到。 舊容器的牙齒一定長了..!?!

我一生只有2天,永遠都不會回來。 調試實時Azure問題是一個非常繁瑣的過程。

遺憾的是,Azure CloudDrive開發人員模擬沒有更緊密地復制實時環境。

D000000D InteropCloudDriveException的一種來源是所裝載的驅動器(或快照)是可擴展的,而不是固定大小的。 不幸的是,MSDN文檔只提供了很少的限制信息,但是此注釋是很好的信息來源:

http://convective.wordpress.com/2010/02/27/azure-drive/

我可以證實Dave關於BLOB容器的發現(愛你,Dave,我只呆了一晚上)。

在更改BLOB容器之前,我也遇到了調試問題。

我收到的錯誤消息是“將調試器附加到url的IIS工作進程時出錯...”。

希望這對一些可憐的Azure開發人員有所幫助,讓他們在調試器中度過了艱難的時光。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM