Error web.config <system.webServer>

VS 2015, .Net Framework 4.5.1, local IISExpress application and Azure Web

Trying to follow self-healing configuration settings: https://azure.microsoft.com/en-us/blog/auto-healing-windows-azure-web-sites/

Error: The system.webServer element has an invalid monitoring child element

The application compiles, but does not run at run time, both when running locally in VS2015 and when deploying azure in a web application.

+4
source share
2 answers

I circumvented this issue by modifying the Web.Release.config file, for example:

<system.webServer>
<monitoring xdt:Transform="Insert">
    <triggers>
        <statusCode>
            <add statusCode="500" count="10" timeInterval="00:00:30" />
        </statusCode>
    </triggers>
</monitoring>
</system.webServer>
+1
source

Auto-Healing -, , web.config .

  <system.webServer>
    ...
    <monitoring>
      <triggers>
        <slowRequests timeTaken="00:00:30" count="5" timeInterval="00:10:00" />
      </triggers>
      <actions value="Recycle" />
    </monitoring>
  </system.webServer>

web.config( kudu) - .

Mine - Stardard

,

, !

0

Source: https://habr.com/ru/post/1614692/


All Articles