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

ConfigSections. Exception creating handler

eje
I want to use configSections for applicationsettings but
I get Exception creating section handler.

My code in web.config:

<configuration>
<configSections>
<sectionGroup name="applicationParameters">
<section name="Avanzo"
type="System.Configuration.NameValueSectionHandler "/>
</sectionGroup>
</configSections>

<applicationParameters>
<Avanzo>
<add key="box" value="abcd" />
</Avanzo>
</applicationParameters>

<system.web>
....

I have seen examples where type has the attributes
Version, Culture and PublicKeyToken but I don't know if
that helps and where to find these data. The examples in
the .NET help do not include these extra attributes.

Some help would be nice. My application is ready to be
deployed.

Eje
Nov 18 '05 #1
1 2081
For assemblies located in the GAC (which System is) you need to specify the
assemblies strong name:

System.Configuration.NameValueFileSectionHandler, System,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"eje" <an*******@discussions.microsoft.com> wrote in message
news:a5****************************@phx.gbl...
I want to use configSections for applicationsettings but
I get Exception creating section handler.

My code in web.config:

<configuration>
<configSections>
<sectionGroup name="applicationParameters">
<section name="Avanzo"
type="System.Configuration.NameValueSectionHandler "/>
</sectionGroup>
</configSections>

<applicationParameters>
<Avanzo>
<add key="box" value="abcd" />
</Avanzo>
</applicationParameters>

<system.web>
...

I have seen examples where type has the attributes
Version, Culture and PublicKeyToken but I don't know if
that helps and where to find these data. The examples in
the .NET help do not include these extra attributes.

Some help would be nice. My application is ready to be
deployed.

Eje

Nov 18 '05 #2

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

Similar topics

1
by: Jaco De Villiers | last post by:
Hi, I have added the following group and section: <configSections> <section name="sampleSection" type="System.Configuration.SingleTagSectionHandler" /> <sectionGroup name="tilos.sdk">...
9
by: David B | last post by:
Why is it so difficult to report bugs to Microsoft? I have a documented bug and an small test example. I don't really see why I should have to pay to tell them about it... Anyway, the...
44
by: craig | last post by:
I am wondering if there are some best practices for determining a strategy for using try/catch blocks within an application. My current thoughts are: 1. The code the initiates any high-level...
3
by: Stephen Woolhead | last post by:
I have a web application that has several ConfigSection handlers defined, one in the web application it's self and several in external assemblies. I am using VS's built in web server My problem...
4
by: Frank | last post by:
Hi, I made a handler for unhandled errors. But before that is executed, VB.NET gives me the standard error window. In VB6 there was a setting (errortrapping) about handling errors in the design...
2
by: Nak | last post by:
Hi there, I'm just curious as to something. I have just added an exception handler at the entry point to my application, within the IDE any unhandled exceptions fallback to this and enable me...
11
by: chopsnsauce | last post by:
Here's the example: Dim frm As New FORM1 Try frm.show Catch ex As Exception msgbox ex.message
0
by: Jeffrey Hornby | last post by:
I'm getting "Exception in configuration section handler" when I start my web program and its indicating the opening tag of a custom configSection in my web.config. The relevant parts of the...
3
by: =?Utf-8?B?TUNN?= | last post by:
I have the following configSections in my web.config. Again, it's not clear to me what this is doing because I can delete the entire section and the application compiles and runs fine. Why do I...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.