473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Configuration Application Block does not recognize relative path..

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.con fig" />

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...
Apr 5 '07 #1
1 3473
in that case:
app\
app\config
It should be
path=".\config\exceptionHandlingConfiguration.conf ig"
"RMB" wrote:
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.con fig" />

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...

Apr 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jason | last post by:
Hi, I'm trying to integrate Microsoft's Configuration Management Application Block (CMAB), and have run into a bit of trouble. Would appreciate any input anybody could provide at this point. I...
2
by: Simon Harvey | last post by:
Hi everyone, This is probably a pretty stupid question but does anyone know if its possible to use relative addressing when it comes to accessing an image of the file system? In particular, I...
1
by: Philip Wagenaar | last post by:
Hi, I used the microsoft configuration block to store settings for applications in the past and this worked fine. But now I have the following situation and I do not know how to solve this: I...
4
by: Ashish | last post by:
Iam using a couple of external (other than web.config) configuration files for my project , and i want their behavior to be like that of web.config file ( the application should track changes and...
7
by: Ben R. | last post by:
Hi, I'm working on an ASP.NET 2.0 site and my hosting provider has the root in a different place than I have it locally which is not a problem for most things, except for the access oledb...
0
by: sean rogers | last post by:
hello im using the configuration block and have created the main config file for the application - the file that contains the paths to the other configuration sections i.e. - (my other...
7
by: Steven Cliff | last post by:
I have started to use the new Enterprise Library (Jan 06) and have set up a skeleton project using the DAAB. This all seems to work fine apart from when I come to secure the app.config file via...
1
by: Rolf Welskes | last post by:
Hello, I set in the configuration file of the application: <system.web> <pages styleSheetTheme="E01_Theme01" /> ...... This works.
3
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.