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日 16: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

