Configuration File Location for Validation Block RRS feed

  • Question

  • User-294030300 posted


    I have a data access layer where I have validations setup for business objects.  I would like to keep this configuration in the app.config of the data access project, but don't know how to set that up.  What do you have to do to get the data access block to use its app.config file, and not the clients, when the client is referencing the data access block?


    Monday, January 14, 2008 11:12 AM

All replies

  • User303162096 posted

    Also the book he mentions on this site helps. 


    Monday, January 14, 2008 11:19 AM
  • User-294030300 posted


    That's not quite what I'm asking.  I know you can setup the blocks to use the configuration file, but I want it to use the data access layer component's configuration file, which gets copied in the format of COMPONENTNAME.dll.config, instead of using the client's app.config or web.config.  The reason is there is a lot of data in the configuration file, and I would like to keep it out of the web.config.

    Monday, January 14, 2008 3:57 PM