Could not find file 'c:\windows\system32\inetsrv\..'
-
2012년 7월 6일 금요일 오전 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?
모든 응답
-
2012년 7월 8일 일요일 오후 4:15중재자
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
- 답변으로 표시됨 Arwind - MSFTModerator 2012년 7월 18일 수요일 오전 3:31

