adspace


can u give me real example of how web.config overrides the
machine.config file?

Answer Posted / Nripendra Misra

The `web.config` file allows for application-specific configuration settings that override the default settings defined in the `machine.config` file. Here is an example of how it can be used to override the default maximum allowed content length:
1. In the `machine.config` file, the following setting exists:n ```n <system.web><httpRuntime maxRequestLength=&quot;4096"/>n ```
2. To override this setting for a specific application, create a new or modify an existing `web.config` file in the application's root directory with the following content:n ```n <configuration>n <system.web>n <httpRuntime maxRequestLength=&quot;8192"/>n </system.web>n </configuration>n ```
3. In this example, the application's maximum allowed content length is set to 8192 bytes, overriding the default value of 4096 bytes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does an appdomain get created?

1029


Explain element .net mobile with example? : Microsoft dot net mobile

1054


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

2401


Why am I getting an invalidoperationexception when I serialize an arraylist?

972


Different types of authentication modes in .net framework ?

1066


difference between Response.write,server.transfer and also which one is used when ?

1981


I can't be bothered with cas. Can I turn it off?

1019


How do I know when my thread pool work item has completed?

1001