locked
Could not find file 'c:\windows\system32\inetsrv\..' RRS feed

  • Question

  • 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?

    Friday, July 6, 2012 7:33 AM

Answers