![]() Start > All Programs > Windows Azure > Emulator > Windows Azure Compute Emulator I make sure the compute emulator is started : Return Content("Blob uploaded to container on storage emulator") Using (var fileStream = AzureAzure NOTES and stuffable.jpg")) Create or overwrite the "mytestblob" blob with contents from a local file. Retrieve reference to a blob named "mytestblob".ĬloudBlockBlob blockBlob = container.GetBlockBlobReference("myemulatortestblob.jpg") ![]() Create the container if it doesn't already exist. Retrieve a reference to the previously created container.ĬloudBlobContainer container = blobClient.GetContainerReference("myemulatortcont") Retrieve storage account from connection stringĬloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings) ĬloudBlobClient blobClient = storageAccount.CreateCloudBlobClient() Public ActionResult AddBlobToBlobContainerStorageEmulator() As you can see it is pretty much the standard code you find in beginner examples This action is supposed to create a container on Azure blob storage, and upload a file to it. ![]() This is basically the account name and key everyone is supposed to use when using the emulator. In Web.config file, I add the following tag within the tags I believe this puts version 2.0.6.1 in my project references.Īside from that I see that my references also include I use NuGet to get "Windows Azure Storage". That creates the basic project template with a HomeController.cs and AccountController.cs So it seems my problem is only with emulator storage. I am able to create a cloud project in VS2012 if I want to, and if I do it successfully launches on the emulator. Windows Azure Tools for Microsoft Visual Studio 2012 -v2.1.If I look in Add/Remove programs I see I have ![]() I have installed the additional stuff required for Azure using Web Platform installer. I have both Visual Studio 2012 Pro and Visual Studio 2012 Express for Web (which is free). I will describe in detail what I have done.įirst let me reassure you that I have everything necessary installed (I think): However my 3 month trial expired without me really using it at all, and now that I've returned to looking at Azure I must run on storage emulator (after changing the connection string to dev storage). I had previously successfully run this same program on Azure. I keep getting a 403 forbidden error even though this is developer storage. I just cannot seem to get it to work and have wasted an entire day trying without success. I am attempting to use the Azure Storage Emulator to work with blob storage. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |