title: DependencyResolver.Current.GetService always returns null
body: <p>According to <a href="http://azolotar.blog.com/2011/02/17/ninject-in-asp-net-mvc-3/" rel="nofollow noreferrer">this tutorial</a>, to use Ninject in my Asp.net MVC 3 application , all I have to do is install package via Nuget and configure dependencies.</p>
  
  <h2>Follow these steps</h2>
  
  <blockquote>
    <p>Install Package-Ninject.MVC3</p>
  </blockquote>
  
  <p>In <strong>NinjectMVC3.cs</strong></p>
  
  <pre><code>private static void RegisterServices(IKernel kernel)
  {
      kernel.Bind&lt;IReCaptchaValidator&gt;().To&lt;ReCaptchaValidate&gt;();
  }
  </code></pre>
  
  <p>In <strong>Controller</strong></p>
  
  <pre><code>[HttpPost]
  [ValidateAntiForgeryToken]
  public ActionResult Registe(RegisterModel model)
  {
      var myObject = DependencyResolver.Current.GetService&lt;IReCaptchaValidator&gt;(); //always null
  }
  </code></pre>
  
  <p><code>myObject</code> always returns null.</p>
  
  <p>I've tried <code>kernel.Bind&lt;IReCaptchaValidator&gt;().To&lt;ReCaptchaValidate&gt;().InRequestScope()</code>, but not effect!</p>
  
  <p><code>myObject</code> <strong>continues null</strong></p>
  
  <p>In <a href="https://stackoverflow.com/questions/7718057/get-an-instance-of-an-object-with-ninject">this post</a> here on StackOverflow, I was told to use <code>DependencyResolver.Current.GetService(TYPE)</code> to retrieve the instance of an object.</p>