Код: Выделить всё
WebConfigurationManager.GetSection("compilation")// Name of the tag in the file
WebConfigurationManager.GetSection("CompilationSection") // Name of the class that I'd expect would be returned by this method
WebConfigurationManager.GetSection("system.web") // Parent tag of the 'compilation' tag
< /code>
Все вышеперечисленные методы возвращают null < /code>. Я предполагаю, что есть способ добраться до этого раздела конфигурации, поскольку существует класс, который уже существует ('CompilationSection
Подробнее здесь: https://stackoverflow.com/questions/401 ... web-config