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="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="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
How does an appdomain get created?
Explain
hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays
Why am I getting an invalidoperationexception when I serialize an arraylist?
Different types of authentication modes in .net framework ?
difference between Response.write,server.transfer and also which one is used when ?
I can't be bothered with cas. Can I turn it off?
How do I know when my thread pool work item has completed?