By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,200 Members | 1,640 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,200 IT Pros & Developers. It's quick & easy.

Application Configuration File

P: n/a
A.M
Hi,

We know that Console.exe looks for Console.exe.config as application
configuration file.
Can I define/change the application configuration file inside that actual
application code?

Thanks,
Alan
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Alan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to change the application
configuration file to another file instead of App.exe.config and point the
App.exe to that file. If there is any misunderstanding, please feel free to
let me know.

As far as I know, we cannot do this. The App.exe.config file is by design
and the CLR will only look in to this file for configuration settings. It
seems that we cannot change this behavior by any means.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 16 '05 #2

P: n/a
>We know that Console.exe looks for Console.exe.config as application
configuration file.
Can I define/change the application configuration file inside that actual
application code?


No.

If you need to use config files that do not conform to the standard
..NET naming convention, you'll need to use a separate, third-party,
config file handler component (which can be found e.g. on
www.codeproject.com)

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 16 '05 #3

P: n/a
I use
http://www.west-wind.com/presentatio...ationclass.asp

--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"A.M" <no*****@online.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,

We know that Console.exe looks for Console.exe.config as application
configuration file.
Can I define/change the application configuration file inside that actual
application code?

Thanks,
Alan

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.