Modify your Web.Config in your .NET Web Application or put a file in the bin
directory of your .NET Web Application.
Before you do that, you should ask yourself why you're going to do that.
If you have to do that because a particular .NET Web Application is using
alot of memory, restarting the .NET Web Application isn't going to solve the
problem of a .NET Web Application of using alot of memory. In this case
there's a problem with the .NET Web Application.