.NET - machine.config files and x86 projects

Posted on 2011-10-31
Last Modified: 2012-05-12
Do machine.config files play a role in x86 projects?  Or, are they exclusively associated with web apps?
Question by:jdana
    LVL 40

    Expert Comment

    by:Jacques Bourgeois (James Burger)
    Machine.config is taken into account by most type of projects, including Windows applications.
    LVL 13

    Accepted Solution


    Machine.config is a global set of configuration settings, unique for each computer. It plays roles on both x64 and x86 if you use it. However the compilation of project to be x64 or x86 are setting on Visual Studio project preferences, you can easily change this the produce right output.

    Most of the time web apps have much impact by machine.config compares to hosted application (.exe) as web apps runs under system IUSR account then account that user used to log on.

    The one you should concern more are <myapp>.exe.config and web.config files. These are known as application configuration files. It is best practice to put these settings in the application configuration file instead of machine.config, in fact, you should not altere machine.config file unless you really, really need to modify it. Your application whether it is web or host should carry it's own application configuration files when deployed.

    You may like to read more on configuration files on .Net here,

    Author Closing Comment


    Thanks for the great explanation.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now