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!
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!