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

W

wolfgang wagner

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
 
S

Sukkius

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

wolfgang wagner

Sukkius said:
<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!?!?!?
 
J

Juan T. Llibre

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/library/2tw134k3(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---
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top