Tuesday, September 21, 2004

App Config File not being picked up

Some times you would have done nearly everything right in the windows
application but still on trying to access configuration file you would get
back null or nothing... Well the problem might be the name that you have
used for the config file...

You should know that for a windows based application to pick up app.config
file following should be taken care of...
1.) The app.config name should match your assembly name... i.e. if you have
myassembly.dll then the config file name should be myassembly.config...

2.) Also you should know that the config file is picked up for the main or
the application which is the starting point... So your app.config file
should be attached to that...


With Best Regards,
Mitesh Mehta
Email : miteshvmehta@gmail.com
http://cc.1asphost.com/miteshvmehta/

No comments: