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

  • SEARCH
  • Home
  • 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 6123527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:01:39+00:00 2026-05-23T16:01:39+00:00

In Visual Studio, when we develop, the web.config file is often modified but I

  • 0

In Visual Studio, when we develop, the web.config file is often modified but I don’t know what is modified, and what are consequences in production envirionment for performance, and if configurations sections are important.

For example :

<compilation>
<compilers>
<runtime>
...

There are lot of sections I thinks are not essentials, and without it or with another configuration, can improve performance in production environment.

So my question is :

What are you looking for in web.config file in production environment to not to lower performance and have a light configuration file ?

What are best practices ?

Thanks for your answers !

  • 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-23T16:01:39+00:00Added an answer on May 23, 2026 at 4:01 pm

    The number of sections in a web.config file has nothing to do with performance.

    Some machines will require more things configured than others (hence a size difference) in order to run the same application.

    As Hasan pointed out, the web.config is merged with the machines config file. You might very well have 1 machine (call it test) which defines things in it’s machine.config that isn’t defined in your production config. So, for test you might not need certain sections that production would require.

    Also, the machine configs for a particular item might vary. In a web farm scenario it is common practice to override the machines config file with a common machinekey. This doesn’t have a performance impact but does impact whether you are going to be successful in load balancing the site.

    To iterate: the number of sections is immaterial to performance. The contents of defined sections, on the other hand, is.


    Now, how to improve performance: This is on an application by application basis. For production you will want to turn off debugging, and turn on things like url compression for static content.

    You might want to turn on compression for dynamic content as well or even configure certain directories to inform the browser that content is cachable (like /images, /css, or javascript). Incidentally, these would generally increase the size of your production config file and has certain consequences (like when you want to change a css file), but will generally yield improved performance for the client.

    For other items you might turn off logging or use a completely different logging storage provider. We use elmah and our dev boxes are configured for in memory storage whereas production is configured to use a database server. Not necessarily a performance issue, but certainly one of concern.

    The point here is that a config file should be used for the purpose of making sure the application can execute on that particular platform / machine.

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

Sidebar

Related Questions

I have managed to develop an extension for visual studio Update web reference action
I've got Visual Studio 2010. To develop a web app in Iron Python (i.e.
My friend uses Visual Studio to develop websites in ASP.NET. She only uses the
How do I use Visual Studio to develop applications on Mono? Is this possible?
I use Visual Studio .NET to develop a component named X_Component and I plan
I use Visual Studio .NET to develop internal applications. I create a Windows control
I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running
Can I develop Silverlight applications in Visual Studio express? When I start up Visual
We develop asp.net webforms using visual studio 2008. For multilingual support, we translate all
I'm helping develop a MVC application in Visual Studio 2008 using the Entity Model

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.