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 8123479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:11:46+00:00 2026-06-06T06:11:46+00:00

Let us consider a web.config file deployed from website…. let us take another project

  • 0

Let us consider a web.config file deployed from website….

let us take another project say console application or some class file then is it possible to read that web.configuration file and add some tags in that web.config file

i just want to add these lines in to it

<system.webServer>
    <modules>
      <add name="sample" type="sample.class" />
    </modules>
  </system.webServer>

Waiting for your valuable comments

  • 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-06-06T06:11:47+00:00Added an answer on June 6, 2026 at 6:11 am

    Updated: Read this Article and download source code, it may help you to read/write new section in config files.

    To read the AppSettings from the Web.Config file you can use the ConfigurationSettings or ConfigurationManager Class.

    It works like the following

    string connectionInfo = ConfigurationSettings.AppSettings["ConnectionInfo"]; 
    

    ConnectionInfo is in the Web.config file under the AppSettings like

    <appSettings>
    <add key="ConnectionInfo" value="server=(local);database=Northwind;Integrated Security=SSPI" />
    </appSettings>
    

    and to write in the web.config AppSettings section.. Let’s say you have a key ‘SiteName’ in your appsettings section of your config file… you can update it like that..

    Configuration config = WebConfigurationManager.OpenWebConfiguration("~");  
    config.AppSettings.Settings["SiteName"].Value = "New Site Name Value";  
    config.Save(ConfigurationSaveMode.Modified);  
    ConfigurationManager.RefreshSection("appSettings");  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

let's consider a web application built using MVC concept. If my application generates some
Let's say you want to build a web application with high scalability (over 10,000
Let's say I'm making a fairly simple web application using JAVA EE specs (I've
Let's consider the following scenario: a function which can generate code colors from white
Let's consider this fabfile def syncdb(): print(green(Database Synchronization ...)) with cd('/var/www/project'): sudo('python manage.py syncdb',
Consider that you have System_A which is a web application. And System_A has simply
AFAIK, usual ASP.NET web site/web application switched on into DEBUG mode when web/app-config setting
I want to desing java application that montior internet activity. Let consider I open
I have been pondering on this for a while. Consider a web application of
Consider this problem: I have a program which should fetch (let's say) 100 records

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.