Posts

Showing posts from July, 2016

Document Upload in Azure Cloud with ASP.Net MVC

Configure Azure storage connection string To configure your connection string, open the web .config or app.config file from Solution Explorer in Visual Studio.Add below line in <appSettings> tag of your config file. Replace "your account name" with the name of your storage account, and "your account key" with your account access key: < add key = " StorageConnectionString " value = " DefaultEndpointsProtocol=https;AccountName=<your account name>;AccountKey=<your account key> " /> Parse the connection string from Config file The Microsoft Azure Configuration Manager Library for .NET provides a class for parsing a connection string from a configuration file. below is example that shows to retrieve a connection string from a configuration file: CloudStorageAccount storageAccount = CloudStorageAccount .Parse( CloudConfigurationManager .GetSetting( "StorageConnectionString" )); Above line w