views:

607

answers:

4

when building a desktop app in wpf can you read documentation of problems and safely subsititute 'app.config' when people's answer's refer to 'web.config'?

if so are there any glaring GOTCHAS you have to look out for?

tnx

+4  A: 

Web.Config is used for asp.net web projects / web services.

App.Config is used for Windows Forms, Windows Services, Console Apps and WPF applications

Your question isn't providing all the information as to where the gotcha's may lie for you.

Can you give us more info on what you are trying to do in terms of these config files?

Peter
+1  A: 

Web.config is parsed at runtime, whereas app.config is done at compile time. So if you edit the App.config on the machine then it will not update when you start the service. If you edit the web.config file then this will be checked when the website starts.

FinancialRadDeveloper
Sorry, this is fundamentally wrong. At compile time a copy of the app.config is taken, renamed to [output].config and moved to the build folder. You can then modify this copy to your hearts content, and your modifications will be read each time the application/service/etc is started.
Zhaph - Ben Duguid
A: 

I have updated the output config (config.depoly), and the modifications are not read. I have to recompile for the changes to take.

xti