Reading web.configuration values in asp.net application
<p>In my asp.net application I want to read authorization section of web.config and modify that.
For that I am using the below code but I am not getting the values. So have a look at it and let me know if there is any way to read and update authorization section values
AuthorizationSection section;
my section is like the following</p>

<pre><code> &lt;authorization&gt;
       &lt;deny users="?"/&gt;
 &lt;/authorization&gt;
</code></pre>

<p>And this is the code:</p>

<pre><code>configuration = WebConfigurationManager.OpenWebConfiguration("~");
section = (AuthorizationSection)configuration.GetSection("system.web/authorization"); 
SectionInformation sc= section.SectionInformation;
</code></pre>

<p>Thanks,
Hima.</p>
