Unable To Access Custom ConfigSection in 1.1

M

Marauderz

Hi guys, having a weird problem here. I've declare a custom config section
in my web.config file with the following lines

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>

<section name="ClientCaps"
type="System.Configuration.DictionarySectionHandler,System" />

</configSections>

<ClientCaps>
<add key="MSIE" value="1"/>
</ClientCaps>

<!-- Rest of the usual stuff in a Web.Config file -->

</configuration>
----------------
When I try to access the section in code with the following call :-
Dim nvc As Collections.Specialized.NameValueCollection
nvc =
CType(System.Configuration.ConfigurationSettings.GetConfig("ClientCaps"), _
Collections.Specialized.NameValueCollection)
--------
I get a Exception Creating Section Handler error. According to the Assembly
load trace seems like it was looking for the System assembly everywhere but
the GAC!

The ASP.Net application is currently impersonating another windows user
account other than ASPNet.. does this have anything to do with it?

Thanks!
 

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
474,434
Messages
2,571,685
Members
48,796
Latest member
Greg L.

Latest Threads

Top