title: Automatic code execution in ASP.NET
body: <p>My task is to create an ASP.NET application with a piece of code which will automatically run every half an hour. This code must append a record to the file every half an hour. It should not depend on users requests(whether they happen or not).<br>
   1) I'm writing my code in Application.Start method of Global.asax file. Am I right?<br>
   2) Do I have anything to do with the hosting (IIS) settings (e.g. change permissions to write the file, etc)?</p>
  
  <p>I have already tried just putting the code to write to file into a loop in Application.Start method and then just copied the project directory to the server. However, it didn't work.</p>