Could not find file 'c:\windows\system32\inetsrv\..'
-
viernes, 06 de julio de 2012 7:33
Hi,
Is this correct to upload/store the mentioned image into blob storage.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("ia-container");
container.CreateIfNotExist();
container.SetPermissions(new BlobContainerPermissions { PublicAccess = BlobContainerPublicAccessType.Blob });
CloudBlob blob = container.GetBlobReference("article-blob");
using (var fileStream = System.IO.File.OpenRead(FileUpload1.PostedFile.FileName))
{
blob.UploadFromStream(fileStream);
}i get error in the blocked lines like,' Could not find file 'c:\windows\system32\inetsrv\Penguins.jpg' '.
How can i resolve this. Whether this way is correct?
Todas las respuestas
-
domingo, 08 de julio de 2012 16:15Moderador
Does this thread helps?
It seems the same problem.
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
- Marcado como respuesta Arwind - MSFTModerator miércoles, 18 de julio de 2012 3:31

