473,385 Members | 1,640 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,385 software developers and data experts.

web.config "configSections" error in asp.net 2.0

hi all!

i'm trying to define a custom config section like described in the
online help of VS2005:

<configuration>
<configSections>
<section name="sampleSection"
type="System.Configuration.SingleTagSectionHandler " />
</configSections>

<sampleSection setting1="Value1"
setting2="value two"
setting3="third value" />
....

</configuration>

but in the errorlist i get the message that the schemeinfo for the
element "sampleSection" is not found. so i'm wondering what mistake i
made???

does anyone have any suggestions??
thx in advance

wolfgang
Mar 23 '06 #1
5 2259
Hi Wolfgang,

That might be the intellisense that can not handle the new element. Did
you try if your SingleTagSectionHandler worked?
--
Ward Bekker
"Asp.Net Discussions for the Professional Developer"
http://www.dotnettaxi.com

"Free .Net 2.0 C# to/from VB.Net Code Converter"
http://www.dotnettaxi.com/Tools/Converter.aspx
Mar 23 '06 #2
<configSections>
<section name="sqlFiles"
type="CT.DataServices.SqlRepositorySectionHandler, CTSqlRepository" />
<section name="dbConnections"
type="CT.DataServices.ConnectionInfoSectionHandler , CTDataServices" />
<section name="fileStore"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="currentStore"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="fedExConfig"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="jdeHosts"
type="CT.JDE.ThinNet.JDEHostConfigSectionHandler, CTThinnetAPI"/>
<section name="ctusopConfig"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
</configSections>

Mar 23 '06 #3
You are missing the sectionGroup name.

See a complete example at :

http://msdn2.microsoft.com/en-us/lib...k3(VS.80).aspx

There's several samples for custom config sections,
both inline and in code-behind, for C# and VB.NET.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"wolfgang wagner" <lo*****@gmx.de> wrote in message
news:%L****************@newsread.de.ignite.net...
hi all!

i'm trying to define a custom config section like described in the online help of VS2005:

<configuration>
<configSections>
<section name="sampleSection"
type="System.Configuration.SingleTagSectionHandler " />
</configSections>

<sampleSection setting1="Value1"
setting2="value two"
setting3="third value" />
...

</configuration>

but in the errorlist i get the message that the schemeinfo for the element "sampleSection" is not
found. so i'm wondering what mistake i made???

does anyone have any suggestions??
thx in advance

wolfgang

Mar 23 '06 #4
Sukkius schrieb:
<configSections>
<section name="sqlFiles"
type="CT.DataServices.SqlRepositorySectionHandler, CTSqlRepository" />
<section name="dbConnections"
type="CT.DataServices.ConnectionInfoSectionHandler , CTDataServices" />
<section name="fileStore"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="currentStore"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="fedExConfig"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="jdeHosts"
type="CT.JDE.ThinNet.JDEHostConfigSectionHandler, CTThinnetAPI"/>
<section name="ctusopConfig"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
</configSections>


i don't know what to do with this!?!?!?
Apr 4 '06 #5
I think he was trying to give you an example of a properly configured
section, and wasn't trying to get you to use those entries.

Did you miss my reply on 3/23 ?

---000---

You are missing the sectionGroup name.

See a complete example at :

http://msdn2.microsoft.com/en-us/lib...k3(VS.80).aspx

There's several samples for custom config sections,
both inline and in code-behind, for C# and VB.NET, in that page.

---000---


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"wolfgang wagner" <lo*****@gmx.de> wrote in message
news:x%****************@newsread.de.ignite.net...
Sukkius schrieb:
<configSections>
<section name="sqlFiles"
type="CT.DataServices.SqlRepositorySectionHandler, CTSqlRepository" />
<section name="dbConnections"
type="CT.DataServices.ConnectionInfoSectionHandler , CTDataServices" />
<section name="fileStore"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="currentStore"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="fedExConfig"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
<section name="jdeHosts"
type="CT.JDE.ThinNet.JDEHostConfigSectionHandler, CTThinnetAPI"/>
<section name="ctusopConfig"
type="System.Configuration.NameValueSectionHandler ,System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
/>
</configSections>


i don't know what to do with this!?!?!?

Apr 4 '06 #6

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

Similar topics

0
by: helpful sql | last post by:
Hi all, I am getting an exception from asp.net application that says error creating section handler. Here is my configuration section from web.config file: <configSections> <section...
0
by: Søren Lund | last post by:
Hello, I have implemented a custom config section handler by implementing the IConfigurationSectionHandler interface. I have registered this handler in web.config and everything works fine ......
0
by: David Mediavilla | last post by:
I am writing a client for an HTTPS web service using WSE 1.0 but I always get an error like "The underlying connection was closed: An unexpected error occurred on a send." Sometimes the error...
1
by: Chris Ashley | last post by:
I am trying to log all the messages sent to/from my web services and read somewhere that WSE2 would let me do this. I have just installed this and added the following to my code: ...
1
by: Abhi | last post by:
I am using Cryptography application block and am trying to use configSource attribute to keep the config file as separate file. my Application configuration file has following entry ...
7
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for...
0
by: BrianKer | last post by:
Hi! It's my first discussion on this forum. First I have a exe like this below (the object can invoke by console) public class DynamicLoad { public Type AssemblyType = null; ...
1
by: nish85 | last post by:
Hi, i have uploaded my sit to web server goddady.com i have a button to download dyanmically generated excel file.This button is ajax enabled.....When i am click on this button it will popup a...
1
by: =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post by:
Hi I am creating a web service PreprocessingService with IIS Hosting and transport layer security with user name and password. I created a self-signed certificate IISHost in IIS which is issued...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.