473,405 Members | 2,445 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,405 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 2302

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