Configuration Application Block does not recognize relative path..

G

Guest

I am using the Configuration Application Block, and I want to keep my config
files in a folder off of the app root called config. I have modified the
app.config to point to the folder with a relative path (see example below)

<storageProvider xsi:type="XmlFileStorageProviderData" name="XML File
Storage Provider" path="..\config\exceptionHandlingConfiguration.config" />

I can edit my configuration with the entlib config tool with no problem, but
when deploying I want to keep the config files in the config folder; however,
when I start my application, the config app block does not recognize the
relative path and the app fails because it cannot open the config files (yes
the path exists).

Any ideas on how I can get around this, I really don't want to store my
config files in the application root.

Thx in advance for your thoughts...
 
G

Guest

in that case:
app\
app\config
It should be
path=".\config\exceptionHandlingConfiguration.config"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top