title: How to use Sys.Services.AuthenticationService works and what could prevent it from working
body: <p>My website uses Sys.Services.AuthenticationService in order to do an ajax style login.</p>
  
  <p>Right now it's contained within</p>
  
  <pre><code>$(document).ready(function() { });
  </code></pre>
  
  <p>here's the very beginning of the javascript code... (You can read the full implementation <a href="http://weblogs.asp.net/andrewfrederick/archive/2008/02/18/a-client-side-ajax-login-for-asp-net.aspx" rel="nofollow noreferrer">here</a>)</p>
  
  <pre><code>alert("1");
  var ssa = Sys.Services.AuthenticationService;
  alert("2");
  </code></pre>
  
  <p>The first alert fires and the second one doesn't... any idea of why this wouldn't work? Is there something I need to include in my website like an external resource? Or could it be that it's within the <code>$(document).ready function</code>?</p>
  
  <p>Any ideas/suggestions are greatly appreciated! If you need any more information just let me know. I'll add updates as I find out more.</p>
  
  <p><strong>Update:</strong> I just wanted to add a few things...</p>
  
  <ul>
  <li>I'm running on Asp.Net MVC</li>
  <li>Here is the tutorial I followed -- <a href="http://weblogs.asp.net/andrewfrederick/archive/2008/02/18/a-client-side-ajax-login-for-asp-net.aspx" rel="nofollow noreferrer">Client-side Ajax Login</a></li>
  </ul>
  
  <p>Thanks,<br/>
  Matt</p>