configSections - .Net Bug - Please Help

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
...
 
T

Taco

Take a look at configSections part in the file
C:\Windows\Microsoft.NET\Framework\<version>\CONFIG\machine.config
You can see that the specify the type with version, culture and token.

Doing the same thing in the web.config worked for me.

With kind regards,
Taco.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top