Ask a Question related to ASP.NET General, Design and Development.
-
Jaco de Villiers #1
configSections - .Net Bug - Please Help
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
...
Jaco de Villiers Guest
-
Taco #2
Re: configSections - .Net Bug - Please Help
Take a look at configSections part in the file
C:\Windows\Microsoft.NET\Framework\<version>\CONFI G\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.
Taco Guest



Reply With Quote

