B
bixbarton
Does anyone know how to obtain the MaxRequestLength easily?
I have found that if you do the following;
object getCon = HttpContext.GetAppConfig("system.web/httpRuntime")
Then look at getCon in debug, you can see the HttpRuntimeConfig object
with the MaxRequestLength in it, but you cannot cast the object to
HttpRuntimeConfig, so cannot programmatically get at the
MaxRequestLength property.
Anyone have a clue about this?
I'm using .NET 1.1 and C#
I'm starting to think that opening the machine.config and parsing the
XML is going to be the only way, however I also will need a way of
querying .NET to get the path to machine.config to avoid hardcoding it.
I have found that if you do the following;
object getCon = HttpContext.GetAppConfig("system.web/httpRuntime")
Then look at getCon in debug, you can see the HttpRuntimeConfig object
with the MaxRequestLength in it, but you cannot cast the object to
HttpRuntimeConfig, so cannot programmatically get at the
MaxRequestLength property.
Anyone have a clue about this?
I'm using .NET 1.1 and C#
I'm starting to think that opening the machine.config and parsing the
XML is going to be the only way, however I also will need a way of
querying .NET to get the path to machine.config to avoid hardcoding it.