ASP.Net: Keepalive code execution
<p>I have a windows service that is calling a page on our website for two reasons: 1) to keep the site alive, and 2) to execute a web service method which also lives on this website.</p>

<p>On page_Load, the web service instance (SvcTaskRun) is coded to execute the RunTasks() method, which I currently have set to send an email each time it gets called, but will later execute a series of automated tasks.</p>

<pre><code>Sub page_load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load

    Dim SvcTaskRun As New MyTaskRunSvc.TaskRunSvc

    Dim TaskListComplete As String = SvcTaskRun.RunTasks

End Sub
</code></pre>

<p>Right now, I'm just trying to get it to run (send the email) each time my keepalive page loads.</p>

<p>So my IIS log tells me that the windows service is getting a ststus code of 200 each time it performs a GET on keepalive.aspx.</p>

<p>But, the page load code apparently doesn't execute. </p>

<p>Question: Any idea why this isn't working?
Question: How can I instantiate debugging while I wait for the execution of Page_Load? Never used Attach to process or anything before, only debugged using F5/F11.</p>

<p>THANKS</p>
