473,403 Members | 2,359 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.

Problems with ConfigurationManagement ApplicationBlock

Tim
I'm having trouble using the ConfigurationManagement Application Block.
Using VS.Net 2003, Framework 1.1

app.config is the following:
<configuration >
<configSections>
<section name="applicationConfigurationManagement"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.ConfigurationManagerSectionHandler,Microso ft.ApplicationBlocks.ConfigurationManagement"
/>
<section name="appSettings"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.XmlHashtableSectionHandler,Microsoft.Appli cationBlocks.ConfigurationManagement"
/>
</configSections>
<appSettings>
<ApplicationName>"Import"</ApplicationName>
</appSettings>
<applicationConfigurationManagement defaultSection="appSettings">
<configSection name="appSettings">
<configProvider
assembly="Microsoft.ApplicationBlocks.Configuratio nManagement"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.Storage.XmlFileStorage"
signed="false" encrypted="false" />
</configSection>
</applicationConfigurationManagement>
</configuration>
When I try to do:
ConfigurationManager.Read("appSettings");

I get:
An unhandled exception of type 'System.Configuration.ConfigurationException'
occurred in microsoft.applicationblocks.configurationmanagemen t.dll

Additional information: Section or group name 'appSettings' already defined
If I comment out the
<section name="appSettings"
type="Microsoft.ApplicationBlocks.ConfigurationMan agement.XmlHashtableSectionHandler,Microsoft.Appli cationBlocks.ConfigurationManagement"
/>

I get this exception
An unhandled exception of type 'System.Configuration.ConfigurationException'
occurred in microsoft.applicationblocks.configurationmanagemen t.dll

Additional information: Creating Storage Provider and Cache for section
'appSettings' where storage type =
'Microsoft.ApplicationBlocks.ConfigurationManageme nt.Storage.XmlFileStorage' and
assembly = 'Microsoft.ApplicationBlocks.ConfigurationManageme nt'

As far as I can tell, I'm doing it the same as the sample code. Any help would
be appreciated.

Thanks,
Tim

Jul 21 '05 #1
0 2301

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

Similar topics

14
by: Jim Hubbard | last post by:
Are you up to speed on the difficulties in using the 1.1 .Net framework? Not if you are unaware of the 1,596 issues listed at KBAlertz (http://www.kbalertz.com/technology_3.aspx). If you are...
1
by: 3f | last post by:
Hello; We have made a web application that people can download from our web site and installed on: Windows XP Windows 2000 Professional Windows 2003 Server Windows 2000 Server
5
by: Corky | last post by:
This works: db2 SELECT DISTINCT PROBLEM_OBJECTS.PROBLEM_ID FROM PROBLEM_OBJECTS INNER JOIN PROBLEMS ON PROBLEM_OBJECTS.PROBLEM_ID = PROBLEMS.PROBLEM_ID WHERE INTEGER(DAYS(CURRENT DATE) -...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
0
by: Basem | last post by:
I have found people with similar errors using the ConfigurationManagement application block, but those solutions don't seem to do anything...basically, just trying to read in a configuration xml...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
0
by: Nikhil Patel | last post by:
Hi all, I am using UIProcess ApplicationBlock in my ASP.Net application. I need to use SessionStatePersistence in the uipConfiguration section. Itried following but it did not work....
0
by: Stephen Noronha | last post by:
Hi, I have a simple question, what is the big difference between using: web.config's appsettings for Connection, emailaddress ..... and Microsoft.Applicationblocks.Configurationmanagement...
0
by: Tim | last post by:
I'm having trouble using the ConfigurationManagement Application Block. Using VS.Net 2003, Framework 1.1 app.config is the following: <configuration > <configSections> <section...
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: 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
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
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
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...
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.