N
Navin Mishra
Hi,
I'm using OpenWebConfiguration to open web.config of another ASP.NET
application in an admin app and, I could read/write other appSettings keys
just fine, but I can't access keys in SingleTagSectionHandler. Has somebody
done that or is it not possible ? I use GetSection to access the section but
when I cast to IDictionary(the way to access keys in SingleTagSection), the
casting fails with error "System.InvalidCastException: Unable to cast object
of type 'System.Configuration.DefaultSection' to type
'System.Collections.IDictionary". I'm really stuck on that and don't want to
read/write raw XML!
Thanks in advance and regards
Navin
I'm using OpenWebConfiguration to open web.config of another ASP.NET
application in an admin app and, I could read/write other appSettings keys
just fine, but I can't access keys in SingleTagSectionHandler. Has somebody
done that or is it not possible ? I use GetSection to access the section but
when I cast to IDictionary(the way to access keys in SingleTagSection), the
casting fails with error "System.InvalidCastException: Unable to cast object
of type 'System.Configuration.DefaultSection' to type
'System.Collections.IDictionary". I'm really stuck on that and don't want to
read/write raw XML!
Thanks in advance and regards
Navin