Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

.NET - machine.config files and x86 projects

Do machine.config files play a role in x86 projects?  Or, are they exclusively associated with web apps?
1 Solution
Jacques Bourgeois (James Burger)Commented:
Machine.config is taken into account by most type of projects, including Windows applications.

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, http://msdn.microsoft.com/en-us/library/1xtk877y.aspx
jdanaAuthor Commented:

Thanks for the great explanation.


Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now