473,386 Members | 1,830 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,386 software developers and data experts.

Configuration Managament Application Block and Web.Config Problem

Hello folks,

i've got a tough problem with configuration the CMAB in my asp.net
application. Following scenario is given:

root directory (ASP.NET Application)
|- web.config (access from CMAB works fine)
|- /VirDir1 (NO ASP.NET Application (just a normal VirtDir))
|- web.config (no access from CMAB possible)
|- execute.aspx (aspx page, which uses CMAB Config)

1. Design of the application makes it impossible to simply create an
app in IIS config for VirDir1

2. execute.aspx uses the CMAB to read a DatabaseIdentifierString from
VirDir1/execute.aspx

3. CMAB loads web.config through first time through
configurationSettings.GetConfig and gets /VirDir1/web.config for
reading the existing config sections

4. CMAB now wants to load the desired config section. But this time,
CMAB do not use configurationSettings.GetConfig, but
AppDomain.CurrentDomain.SetupInformation.Configura tionFile .

==> at this point AppDomain.(...) points to /root/web.config NOT
/root/VirDir1/web.config.
/root/VirDir1/web.config does not have any CMAB Configuration
Sections.

The resulting error is:
Section 'DatabaseIdentifier' not defined on the configuration file.
Check the /configuration/configSections/section node in the
application config file (assemblyfilename.config). This node must be
like <section name="XmlConfig"
type="WinApp.CustomSectionHandler,WinApp" />.
Anybody there with a hint for troubleshooting? Fixing the CMAB would
be an option, but is not really preferred :)

Thanks in advance!
Greetings
Johannes
Nov 18 '05 #1
0 1137

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

Similar topics

0
by: Nick Carter | last post by:
Microsoft's Configuration Management Application Block (CMAB) allows me to specify which Configuration Storage Provider (CSP) to use in the application's config file. I am writing a .NET library...
1
by: Jorge Besada | last post by:
I am planning on using the Configuration Management Application Block. The Block reads the app.config file the first time it is used. What if I want to add a new section/configSection and have the...
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...
7
by: MrNobody | last post by:
I was a Java developer so I'm used to using property files as a means to keep configuration settings for my apps. I'm wondering what options are there with ..NET? Some settings I want to include...
1
by: Robert N | last post by:
I was able to compile (Debug) and reference an Configuration Block project for my primary application "AppPrimary.exe". When I add a strong name file to the Configuration Block project and...
7
by: Martin Strojek | last post by:
Hi, I have the following problem with developing some web site. I use Visual Studio 2003 to build a website. I tried Windows 2003 Server and switched now back to Windows XP with PWS but the...
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: =?Utf-8?B?Uk1C?= | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.