VKinfotek Inc.
  • Us
    About Us
    Contact Us
  • FAQs
  • Ready Software
    Ready ERP ASP Core Software for Azure Cloud
    Ready Web ERP Software
    Ready ASP.Net Azure Software
    Ready C# SQL Server Accounting Software
    Ready ASP.Net MVC and EF Software
First slide
Earn $100/hour in USA! Click Here

Q76. How to configure Azure Connection Strings for connecting to the storage emulator?

This is a continuation of the previous question, where we discussed configure Azure Connection Strings. Now, we will create a connection string which we can use for local storage that is storage emulator. In Visual studio, select cloud service project, click on the settings section of the role designer.

Enter the connection string name myLocalString and click on the ellipsis button to display the Storage Account Connection String builder dialog. In this dialog, set the value of the connection string to UseDevelopmentStorage=true.

storage account connection string builder dialog

We can create multiple connection strings for cloud service project. The benefit of using multiple connection strings is that we need not change configurations each time we publish to a different target environment. When we debug the application, by default VS uses the local storage and the compute emulator. On publishing, the cloud service application uses the connection string pointing to Windows Azure storage account. Given below is the code we use to access the connection string value by using the CloudConfigurationManager class in the application code.

var conn = CloudConfigurationManager.GetSetting("MyConnectionString");


We will discuss how to retrieve the connection string from the configuration file in the next question.
  • Prev Question
  • Next Question

See More Questions and Answers on - Azure Table Storage (cont..)

  • How to access the Azure table storage from a .NET application?
  • What is an Azure storage connection string?
  • How to configure Azure connection strings?
  • How to create a table in Azure storage?
  • How to create a table using a simple c# console application?
  • How to insert entities into the Azure table?
  • How do I retrieve a single entity from table storage using tableoperation?
  • How do I query azure table storage using TableQuery class?
  • How to update records in a table storage?

Back to Master List of 100+ Questions and Answers

People also viewed: cover image of book develop erp software using asp core and deploy to Azure Create your own ERP Software using ASP Core>>
cover image of azure cloud book Create your own Azure SOM Software>>
cover image of asp.net book Create your own ERP Software using ASP .Net and SQL>>
cover image of foundation database programming book Create your own Accounting Software using C# >>
cover image of entity framework book Create your own SOM using Entity Framework MVC >>

  • SITEMAP
  • Terms of use
  • Testimonials

Back to top

Copyright © 2018 - All Rights Reserved - VKInfotek.com