locked
unknown error HRESULT=D000042A comes while mounting azure drive RRS feed

  • Question

  • I am getting error "unknown error HRESULT=D000042A " while mounting the azure drive. What does it mean?

     


    mitesh
    Wednesday, March 9, 2011 11:34 AM

Answers

  • CreateCloudDrive() needs the full path to the VHD page blob. The following is from the Azure Storage Team whitepaper on Azure Drive:

    Create Drive - Creates a Page Blob formatted as a single partition NTFS volume VHD.   

    When creating a drive, you specify the URL of the page blob and the credentials needed for the client library to access the drive.  The container has to already exist, but the blob cannot exist.  If the blob already exists, when calling create, you will get an error.  The URL will be of the form:
    http://<accountname>.blob.core.windows.net/<containername>/<blobname>

     

    • Proposed as answer by freaky roach Thursday, March 10, 2011 10:34 AM
    • Marked as answer by Mog Liang Wednesday, March 16, 2011 9:13 AM
    Thursday, March 10, 2011 6:45 AM
    Answerer

All replies

  • Hi mitesh,

    Error code: (NTSTATUS) 0xd000042a (3489661994) means "the requested operation is out of order with respect to other operations".

    Could you please provide repo project or code?

    Thanks,


    Mog Liang
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com.
    Microsoft One Code Framework
    Thursday, March 10, 2011 3:12 AM
  •  

     

    Thanks mog please find drive mount code from webRole.cs file. My .vhd size is 500MB and 55MB is free space in it. AzureDriveCAche is 50MB

    try

    {

    account =

     

    CloudStorageAccount.FromConfigurationSetting("CloudStorageAccount");

     

     

    LocalResource azureDriveCache = RoleEnvironment.GetLocalResource("AzureDriveCache");

     

     

    CloudDrive.InitializeCache(azureDriveCache.RootPath + "cache", azureDriveCache.MaximumSizeInMegabytes - 20);

     

     

    //TileService oTS = new TileService();

     

     

    string path = "";

     

     

    CloudDrive drive = account.CreateCloudDrive("eaglemaps" + "/" + "tsazure2.vhd");

     

     

    try

    {

    path = drive.Mount(azureDriveCache.MaximumSizeInMegabytes-20,

     

    DriveMountOptions.None);

    }

     

     

    catch (CloudDriveException driveException)

    {

     

     

    // drive already exists'

    System.Diagnostics.

     

    Trace.TraceWarning("Error1: " + driveException.Message + " " + azureDriveCache.MaximumSizeInMegabytes.ToString()+" "+path);

    }

    }

     

     

    catch (CloudDriveException driveException2)

    {

    System.Diagnostics.

     

    Trace.TraceWarning("Error2: " + driveException2.Message);

    }


    mitesh
    Thursday, March 10, 2011 5:49 AM
  • CreateCloudDrive() needs the full path to the VHD page blob. The following is from the Azure Storage Team whitepaper on Azure Drive:

    Create Drive - Creates a Page Blob formatted as a single partition NTFS volume VHD.   

    When creating a drive, you specify the URL of the page blob and the credentials needed for the client library to access the drive.  The container has to already exist, but the blob cannot exist.  If the blob already exists, when calling create, you will get an error.  The URL will be of the form:
    http://<accountname>.blob.core.windows.net/<containername>/<blobname>

     

    • Proposed as answer by freaky roach Thursday, March 10, 2011 10:34 AM
    • Marked as answer by Mog Liang Wednesday, March 16, 2011 9:13 AM
    Thursday, March 10, 2011 6:45 AM
    Answerer
  • This kind of error is known to occur when there is something wrong with the page blob itself. As mentioned above by Neil you will have to make use of the complete url
    If this post answers your question, please mark it as an answer. If this post is helpful to you, then vote it as helpful.
    TechyFreak | Mobile Development Resources
    Thursday, March 10, 2011 10:35 AM