Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 644409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:23:16+00:00 2026-05-13T21:23:16+00:00

Is it possible to edit web.config file of my cloud app deployed on Windows

  • 0

Is it possible to edit web.config file of my cloud app deployed on Windows Azure without redeploying my app ?

Scenario is like–>

  1. Cloud app is deployed on Azure with 3 instances.
  2. web.config has some static text in appsetting which is displyed on the Home Page(for example – © 2009 My site. All rights reserved)
  3. Now I wish to change that static text mentioned in Web.Config from 2009 to 2010.
  4. Now I wish to edit Web.Config without redeploying my site.
  5. I do not wish to –> deploy my app on stagging with updated Web.Config and then swap it with production.

Is there any trick to update the files from package deployed at runtime ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:23:16+00:00Added an answer on May 13, 2026 at 9:23 pm

    According Maxim in the comments below this answer is now out of date.

    You can programmatically modify the web.config settings of a web role in the OnStart event using the Microsoft.Web.Administration.ServerManager library.

    *** leaving the original answer as it was correct at the time and as, I have not used Azure since answering this question, and I am not 100% sure of the valid answer.

    In a word no.

    You must use the service configuration file for such settings.

    To decide on whether to place keys in the service configuration settings versus web configuration settings.

    You could ask yourself the following questions:

    Does this setting change with every deployment? If so then the web configuration settings is the correct place for this information.

    Will this setting change after deployment? If so then the service configuration settings is the correct place for this information.

    The Web.config file is part of the deployment package and so is read-only when deployed to Azure, in order to update the settings you will need to redeploy.

    Whereas the service configuration file is uploaded with, but not packaged with, the deployment package, and therefore you can upload or edit the file without redeploying your service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My friend asked me if it is possible to build a web site like
If I set <compilation targetFramework=4.0> in web.config, Visual Studio 2010 shows all Linq extension
This is a follow on from here: Storing database settings outside app.config So I
Possible Duplicate: i want to make a web site which is able to control
Is it possible to build a micro (proof of concept) web server in Javascript?
I really love PHP because: _ easy to develop web applications (you set up
EDIT/UPDATE: 1) I tried the URL with just http (not https), and it worked
I have a website that needs to store two sets of user data into
I have a C#/.NET Winforms application which has some settings stored using A '.settings'
I've been working on a CMS based in ASP.NET MVC2 using a poco based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.