473,403 Members | 2,183 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,403 software developers and data experts.

Configuration Management Application Block XML schema for: XmlSerializerSectionHandler

Hi,

I'm trying to use out of the box "XmlSerializerSectionHandler" section
handler (without doing any custom section handler devlopment) and
although I've gone thruogh all the CMAB documentation and 'quick
starts' it seems I can't find the XML schema which this section
handler expects to see in the configuration file.

Here is the CMAB section of my 'web.config' file:

<configuration>
<configSections>
<section name="applicationConfigurationManagement"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.ConfigurationManagerSectionHandler,Microso ft.ApplicationBlocks.ConfigurationManagement,Versi on=1.0.0.0,Culture=neutral,PublicKeyToken=null"
/>

<section name="AppConfig2"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.XmlSerializerSectionHandler,Microsoft.Appl icationBlocks.ConfigurationManagement,Version=1.0. 0.0,Culture=neutral,PublicKeyToken=null"
/>

</configSections>

<applicationConfigurationManagement>
<configSection name="AppConfig1">
<configProvider assembly="Microsoft.ApplicationBlocks.Configuratio nManagement,Version=1.0.0.0,Culture=neutral,Public KeyToken=null"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.Storage.XmlFileStorage"
refreshOnChange="false"
signed="false"
encrypted="false" />
</configSection>

<configSection name="AppConfig2">
<configProvider assembly="Microsoft.ApplicationBlocks.Configuratio nManagement,Version=1.0.0.0,Culture=neutral,Public KeyToken=null"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.Storage.XmlFileStorage"
refreshOnChange="false"
signed="false"
encrypted="false" />
</configSection>

</applicationConfigurationManagement>

<AppConfig2>
<!-- Here is my question, What is the expected XML schema to
write the actual XML nodes in this section -->
</AppConfig2>

</configuration>

In my program code I try to use the follwing syntax to access values
in <AppConfig2> section:
Object ConfigValue2 = ConfigurationManager.Read("AppConfig2");

which always returns 'null'.

I'm surprised that 'Practices and Patterns' team has included a quick
start sample for the custom section handler but none for out of the
box XmlSerializerSectionHandler.

To sum this up I need a sample XML configuration file or an XML schema
that shows the correct XMl format which XmlSerializerSectionHandler
expects to see in the XML file.

Any help is greatly appreciated.

Thanks,
PJ
Jul 21 '05 #1
0 1634

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

Similar topics

6
by: Serge calderara | last post by:
Dear all, Does any one have a ready class that is able to access a configuration file and make different type of querry, read, write operation? Why re invanting the real if something already...
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...
0
by: msnew.microsoft.com | last post by:
I am working on a dotnet application and I wanted to make sure that if I used the Configuration Management Application Block the application would work on any windows OS as long as it had .net...
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...
3
by: rdcpro | last post by:
Hi all, I've been building a nifty deserializing configuration handler that I use in conjunction with my web.config in an ASP.NET web app. This is working quite well, but I'm planning on...
0
by: Vish | last post by:
Hi, Does anybody from microsoft know about the WMI events set up on the Caching Configuration block ? I am regulalrly getting this error even if i have installed all the possible Enterprise...
0
by: PJdotnet | last post by:
Hi, I'm trying to use out of the box "XmlSerializerSectionHandler" section handler (without doing any custom section handler devlopment) and although I've gone thruogh all the CMAB documentation...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.