Link to home
Start Free TrialLog in
Avatar of klingzor
klingzor

asked on

Retrieving settings from web.config from code

Does anybody know if it's possible and how to programmatically retrieve settings from web.config other than appSettings and user defined config sections from a code-behind class?

What I'm looking for specifically, is a way to get the maxRequestLength property from the system.web/httpRuntime section:

<system.web>
    <httpRuntime
        executionTimeout="90"
        maxRequestLength="256"      
        useFullyQualifiedRedirectUrl="false"
        minFreeThreads="8"
        minLocalRequestFreeThreads="4"
        appRequestQueueLimit="100"
    />
</system.web>
ASKER CERTIFIED SOLUTION
Avatar of Maulik Modi
Maulik Modi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of klingzor
klingzor

ASKER

Hi maulikCE, thanks for answering.

...so there is no particular class in the API to retrieve that value then?