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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:41:20+00:00 2026-05-20T07:41:20+00:00

According to what’s new in .NET 4 : major configuration elements have been moved

  • 0

According to what’s new in .NET 4: “major configuration elements have been moved to the machine.config file, and applications now inherit these settings.”

I’m on a project upgrading from .NET 3.5 to .NET 4, and I have some questions about this change:

  • I assume this change is optional: if I leave my current web.config file as-is, it should run just fine under .NET 4 – correct?
  • This enhancement seems to have dubious value: the config hasn’t been simplified – the complexity/bloat has just been relocated to the machine.config file instead of web.config. Am I missing something?
  • It seems like this enhancement actually makes deployment more difficult: in addition to the deployment steps we already had, now we also need to modify the machine.config file to ensure it contains our expected settings/values.

As you can see, my initial take on this is: it’s a hassle and I don’t want to do it. Is there some perspective I’m missing that makes this change especially useful and valuable?

EDIT: Nathan and Rob – both your answers were very helpful and greatly appreciated – it was difficult to decide which to flag as the “real” answer. I upvoted both, of course. Thanks again!

  • 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-20T07:41:21+00:00Added an answer on May 20, 2026 at 7:41 am

    You don’t ever need to modify the machine.config unless you want those settings to be the default for all applications running on the server.

    Most of what was moved out of the web.config were “boilerplate” config items that were added with the release of .NET 3 and 3.5. They were needed by ASP.NET to register controls, handlers, etc, but rarely were they things you would actually need to modify, or care to.

    So basically this is useful to you because the configuration items that are just “white noise” to you are now moved out of you way, allowing you to focus on the settings you actually want to manipulate.

    ScottGu discusses this subject in a blog post of his: http://weblogs.asp.net/scottgu/archive/2009/08/25/clean-web-config-files-vs-2010-and-net-4-0-series.aspx

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

Sidebar

Related Questions

According to this link: http://forums.silverlight.net/t/20489.aspx encrypting a XAP file is not possible. However, obfuscating
According to W3C standards, if you have a nillable element with a nil value,
According to MSDN , a hash function must have the following properties: If two
According To reflector , ExpandoObject Does implemenet IDictionary<string, object> How ever I have this
According to the Set doc , elements in a set are compared using eql?
According to some STL documentation I found, inserting or deleting elements in an std::list
According to this: Get current date/time in seconds var seconds = new Date().getTime() /
According to Wikipedia , partition-based selection algorithms such as quickselect have runtime of O(n)
According documentation: System.Array.Sort<T> - sorts the elements in an entire System.Array using the System.IComparable
According to C++ Standard paragraph 3.7.3/1 objects should be dynamically created with new expression

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.