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

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

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

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

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

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 477
Next
In Process
Rohan Rathore
Rohan Rathore

Rohan Rathore

  • India
  • 4 Questions
  • 0 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
Rohan Rathore
Asked: August 26, 20202020-08-26T10:42:04+05:30 2020-08-26T10:42:04+05:30In: Programming Related

Can I have multiple web.config files in my web application?

  • 0

I want to know whether we can have multiple web.config file? If yes, then what is the use?

asp.netc#configuration fileweb application
  • 1
  • 1,033
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • Best Programming Language To Learn in 2021?
    • Write a console program to store employee number in C#
    • in turbo c how to change the cursor
    • Which is the best programming language to learn right now?
    • C++ Versus java which is better c++ vs java

    1 Answer

    1. Urmila Pal

      Urmila Pal

      • Asp.net Developer with Oracle database connectivity
      • 1 Question
      • 3 Answers
      • 1 Best Answer
      • 36 Points
      View Profile
      Urmila Pal Asp.net Developer with Oracle database connectivity
      2020-09-03T14:11:18+05:30Added an answer on September 3, 2020 at 2:11 pm

      Yes, there can be multiple web.config files in an Asp.net web app. Asp.net doesn’t restrict you from that.

      The root directory contains the main web.config and other web.config can be stored in the subfolders of that project. when you first run your web app the root web.config will be loaded in the cache memory of that app.

      Web.config configuration settings will be overridden from previous to the current one when you open the subfolders of that project.

      Web.config files are XML files with ‘.config’ the extension which contains configuration settings for your website.

      They mostly contain pieces of information like:

      1. Connection string(DB connection)
      2. Session states
      3. Error handling
      4. Security settings
      5. App settings

      If there is no web.config files then the web application will use the machine.config file which is the default configuration file for every site in a machine.

      If you have different modules in your site and want to change configuration settings for that, then you must have different web.config files.

      I hope this answer helps you.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • arunraj503

      How to Add, Install SSL Certificate to Your Website

    • EmmaScott

      What are some key considerations when designing a logo for

    • dynamicapps5

      Image Gallery With Animations Using HTML And CSS Code

    • arunraj503

      How to backup android phone to pc before factory reset

    • SEO_BRISK

      What part does content play in SEO, and what impact

    • glenn

      code for matrix multiplication in c

    • sita

      How to add scrolling text in Blogger

    • dynamicapps5

      how to solve error illegal start of expression in java

    Stats

    • Questions 1,991
    • Answers 2,102
    • Posts 12
    • Best Answers 73

    Related Questions

    • Vipinkv

      Best Programming Language To Learn in 2021?

    • Aniya

      Write a console program to store employee number in C#

    • shree

      in turbo c how to change the cursor

    • harrywilson

      Which is the best programming language to learn right now?

    • Janhavi

      C++ Versus java which is better c++ vs java

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • muller on how to solve export problem in kinemaster
    • AaronBlackburn on why can’t i find my message requests on instagram
    • shree on How to use philips citrus press juicer 25 watts Demo
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    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.