1

How to stop/unload a specific IIS Application (hosted within a specific Site) in order to release the server's resources?

The IIS API (Microsoft.Web.Administration) seems only to allow stopping the entire Site:

Stop/Start WebSite in IIS (6.0 and 7.0) programatically

UPDATED:

I have managed to resolve this issue via an alternative way:

Configure an Application Pool to Recycle after Reaching Maximum Virtual Memory Usage (IIS 7)

As a result, a particular pool is recycling automatically.

Community
  • 1
  • 1
Mikhail
  • 9,186
  • 4
  • 33
  • 49

1 Answers1

0

Put the site in it's own application pool, then just recycle that pool

paul
  • 21,653
  • 1
  • 53
  • 54
  • I have updated my answer. In any case, your answer is useful. I have accepted in order to close the issue. – Mikhail Oct 06 '13 at 08:22