Windows Azure emulator connection string for ASP.NET MVC?

I am looking for a connection string that needs to be defined to use the azure Windows storage emulator.

Until now, all the sources that I found, they say that these lines of connection should go to the file ServiceDefinitionand ServiceConfigurationlocated in the project Windows Azure. However, I am not using the Azure project, but ASP.NET MVC 3.

For an ASP.NET MVC project, it probably should go to a file web.config. However, I have no idea how this should look?

I have an Azure account, if necessary for the emulator.

Thank.

+5
source share
1 answer

, connectionstring DevelopmentStorage=true

, Web.config :

  <appSettings>
    <add key="StorageConnectionString" value="UseDevelopmentStorage=true" />
 </appSettings>

ServiceConfiguration.cscfg:

  <Setting name="StorageConnectionString" value="UseDevelopmentStorage=true" />

CloudConfigurationManager, Service Configratuon, . :

CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
    CloudConfigurationManager.GetSetting("StorageConnectionString"));

ServiceConfiguration, web.config. , Azure, , , . , , ISettingsProvider ( -), , , .

ServiceConfiguration , .

web.config, developmentstorage . Azure, .

Azure.

+12

All Articles