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



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

Answer / 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

More Dot Net AllOther Interview Questions

data types used in validation control

1 Answers   PCS,


Explain difference between inprocess vs out process session state? : .NET Architecture

1 Answers  


What is .net mobile utility controls. : Microsoft dot net mobile

1 Answers  


What re interop services?

1 Answers  


can aspx page contains two pager tags ?

1 Answers  


WHAT IS COMPUTER

7 Answers   NICE, TVS,


3. Should validation (did the user enter a real date) occur server-side or client-side? Why?

4 Answers  


Explain about microsoft visual studio?

1 Answers  


What is a virtual memory? : Dot net architecture

1 Answers  


Difference between abstract class and interface

100 Answers   Accenture, Altruist, Baba Group, CitiGroup, Fiserv, HCL, IBM, iGate, Infosys, Jean Martin, Karthik Industries, Microsoft, OnDLine, TCS,


Explain how cache is used? : Dot net architecture

1 Answers  


what is class and object explain with example?

8 Answers   Six Sigma,


Categories