configSections - .Net Bug - Please Help

  • Thread starter Thread starter Jaco De Villiers
  • Start date Start date
J

Jaco De Villiers

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"
/>
</sectionGroup>
</configSections>

<tilos.sdk>
<tilos.data>
<add key="Configured Environments"
value="EnvironmentList.aspx" />
</tilos.data>
</tilos.sdk>

When I debug my web application I get "Exception creating
section handler". It seems that the application does not
find the System.Dll (Standard Reference). All the paths
attempted are incorrect and does not include the framework
path. See Error detail below:


=== Pre-bind state information ===
LOG: DisplayName = System
(Partial)
LOG: Appbase = file:///C:/Source_Tilos_2_3/Tilos.SDK
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time
(private, custom, partial, or location-based assembly
bind).
LOG: Post-policy reference: System
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
ary ASP.NET Files/tilos.sdk/a3c073d2/199faa55/System.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
ary ASP.NET
Files/tilos.sdk/a3c073d2/199faa55/System/System.DLL.
LOG: Attempting download of new URL
file:///C:/Source_Tilos_2_3/Tilos.SDK/bin/System.DLL.
LOG: Attempting download of new URL
file:///C:/Source_Tilos_2_3/Tilos.SDK/bin/System/System.DLL
..
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
ary ASP.NET Files/tilos.sdk/a3c073d2/199faa55/System.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Tempor
ary ASP.NET
Files/tilos.sdk/a3c073d2/199faa55/System/System.EXE.
LOG: Attempting download of new URL
file:///C:/Source_Tilos_2_3/Tilos.SDK/bin/System.EXE.
LOG: Attempting download of new URL
file:///C:/Source_Tilos_2_3/Tilos.SDK/bin/System/System.EXE
..
 
You need to give the *complete* name of the system DLL. 'System' is just the
DOS file name part of it (the short name), you need to supply the version,
culture and public key token:

type="System.Configuration.NameValueSectionHandler, System,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

Richard
 
Back
Top