Please help me. I am writing following code to mount the vhd file. But I am not able to mount it. It works fine locally but when I deploy it on azure server the webrole remains offline. I tried by removing foreach block below but in vain. But when I removed
the code "Global.driveLetter = drive.Mount(localCache.MaximumSizeInMegabytes - 20, DriveMountOptions.Force);" with foreach block, role got ready on server. But I can't do this because this is the key statement to mount the drive.
I am uploading my VHD using "Cloud Storage Studio".
According to your description, you have mounted the Drive in local, do you ever umount it before running on the cloud? As far as i know, every drive can only mount once (Access write), so please make sure it was unmounted before running.