473,624 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ConfigSections. Exception creating handler

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

My code in web.config:

<configuratio n>
<configSections >
<sectionGroup name="applicati onParameters">
<section name="Avanzo"
type="System.Co nfiguration.Nam eValueSectionHa ndler"/>
</sectionGroup>
</configSections>

<applicationPar ameters>
<Avanzo>
<add key="box" value="abcd" />
</Avanzo>
</applicationPara meters>

<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 2089
For assemblies located in the GAC (which System is) you need to specify the
assemblies strong name:

System.Configur ation.NameValue FileSectionHand ler, System,
Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9

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

My code in web.config:

<configuratio n>
<configSections >
<sectionGroup name="applicati onParameters">
<section name="Avanzo"
type="System.Co nfiguration.Nam eValueSectionHa ndler"/>
</sectionGroup>
</configSections>

<applicationPar ameters>
<Avanzo>
<add key="box" value="abcd" />
</Avanzo>
</applicationPara meters>

<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
2567
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"> <section name="tilos.data" type="System.Configuration.NameValueSectionHandler,System" />
9
4993
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 following code exhibits the bug. If it is built and run from Visual Studio.NET 2003 in debug mode it works correctly as expected. However, if built in Release mode it fails with an "uncaught exception" error, although the exception does have a valid...
44
4206
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 user tasks should always be included in a try/catch block that actually handles any exceptions that occur (log the exception, display a message box, etc.). 2. Low-level operations that are used to carry out the high level tasks
3
1392
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 is that I can not get the section in the webapps assembly to load, i get the error: Parser Error Message: Exception creating section handler : File or assembly name 'MyWebApp', or one of its dependencies, was not found.
4
2399
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 environment and classes, which should prevent the before mentioned behaviour. Does VB.NET have a setting like it? Or is there something else? Thanks in advance Frank
2
1313
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 to disable a dialog of my liking. Now if I run the application outside of the IDE I recieve the standard "Unhandled exception" dialog provided by .NET giving me the ability to continue or quit. I wasn't actually aware that exception handling...
11
5572
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
976
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 web.config looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="MySettings" type="My.Libraries.SystemFramework.ApplicationConfiguration, My.Libraries.SystemFramework, Version=3.0.0.0,...
3
2574
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 need this? <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> <sectionGroup...
0
8249
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8348
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7176
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2613
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.