So I\'m parsing a connection string for an Azure Storage Account and when I get to the page of the app that uses the connection string, the compiler catches an exception sta
Your "StorageConnectionString"
should be in the format of:
DefaultEndpointsProtocol=[http|https];AccountName=
as described here
Also, use CloudConfigurationManager
to obtain your connection string:
string connectionString = CloudConfigurationManager.GetSetting("StorageConnectionString");
This gives the added benefit of either using app.config/web.config when your app is running locally or accessing your app setting in azure when running in the cloud. See this link
Then you should beable to parse the connection string and have the benefit of not having to modify app.config/web.config settings between development & production environments.