2010-07-06 30 views
0

我一直在dev中運行一個雲驅動器快照,現在沒有probs。我現在試圖在Azure中使用它。在Azure中安裝CloudDrive快照時出錯

我不能爲我的生活得到它的工作。這是我最近的錯誤:

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()方法是什麼現在發生故障。

請幫忙,因爲這讓我大飽眼福!

在此先感謝。

戴夫

回答

3

我終於在昨晚得到了這個工作。我所做的只是創建一個新的容器並將VHD上傳到它,所以我不確定舊容器是否存在某些奇怪的現象......?想不到什麼。這個舊容器一定在牙齒上有點長了..!?!

我生命中的2天我永遠不會回來。調試實時Azure問題是一個極其乏味的過程。

Azure CloudDrive開發仿真沒有更接近地複製實時環境,這真是令人遺憾。

0

我可以確認戴夫關於BLOB容器的發現(愛你戴夫,我只花了一個晚上)。

我在更改BLOB容器之前也有調試問題。

我得到的錯誤信息是「將調試程序附加到IIS工作進程的url ...」。

希望這可以幫助一些可憐的Azure開發者,並且在調試器的過程中具有挑戰性。

+0

快樂幫,節省有人從疼痛和痛苦我遭受了一半:-) – Dave 2011-01-18 04:11:38

1

D000000D InteropCloudDriveException的一個來源是當安裝的驅動器(或快照)可擴展而不是固定大小時。不幸的是,MSDN文檔提供了有關限制最少的信息,但這需要注意的是信息的極好來源:

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