How to read system value from web.config and use in ASP.NET MVC C# method
You can do something like: int maxRequestLength = 0; HttpRuntimeSection section = ConfigurationManager.GetSection(“system.web/httpRuntime”) as HttpRuntimeSection; if (section != null) maxRequestLength = section.MaxRequestLength;