When closely observing Web.config, all the possible child elements of <configuration>
are also present inside configuration/runtime
.
I have never encountered a need to specify values in configuration/runtime
section. Have you come across this situation?
What is the purpose of specifying values in runtime section ?
The purpose of <configuration><Runtime>
settings as described in msdn here
is
"Runtime settings specify how the common language runtime handles garbage collection and the version of an assembly to use in configuration files."
These are CLR settings that you can configure for your application. The possible settings directly under <configuration>
is the not the same as <configuration><Runtime>
. You can refer to the <configuration>
schema here
To add to above reply i did face real time situation to use "runtime" element for configuring Assembly binding. I was using Ninject which was referring to System.Web.MVC 3.0.0.0 while i was having System.Web.MVC with version 5.0.0.0
This was causing IOFileNotFound exception
By Adding "runtime" binding i could redirect any binding for System.Web.MVC to 5.0.0.0 verison.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With