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

  • Thread starter Thread starter wolfgang wagner
  • Start date Start date
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
 
<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>
 
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!?!?!?
 
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---




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/
===================================
 
Back
Top