Цитата:
Сообщение от
Narayana
Пробуем выкинуть их из <system.web>, не работает.
Выкидываем из <system.webServer>, все работает, как и можно было ожидать.
Так зачем одно и то же объявлять в двух разделах?
Насколько я понимаю это зависит от версии IIS и от режима.
system.web для IIS 6 и для IIS 7 в classic режиме.
system.webServer для IIS 7.0 в integrated режиме.
Поэтому безопаснее дублировать.
http://msdn.microsoft.com/en-us/library/bb763179.aspx
Цитата:
Some settings in the system.webServer section apply only to IIS 7.0 Integrated mode and do not apply to Classic mode. In particular, any managed-code modules and handlers specified in the system.WebServer section of the Web.config file are ignored if the application is running in Classic mode. Instead, the managed-code modules and handlers must be defined as in earlier versions of IIS, in the httpModules and httpHandlers elements of the system.web section.