title: MVC5 injecting dependency on a view with castle windsor
body: <p>Consider the following scenario</p>
  
  <p>I have a MVC5. I would like to have a base view with some dependencies as:</p>
  
  <pre><code>public class BasicView&lt;T&gt; : WebViewPage&lt;T&gt;                             
  {        
      public IResourceService ResourceService { get; set; }       
  
      public override void Execute()
      {
  
      }
  }
  </code></pre>
  
  <p>Then in the webconfig....</p>
  
  <pre><code>&lt;system.web.webPages.razor&gt;
      &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;  
      &lt;pages pageBaseType="BasicView"&gt;
  </code></pre>
  
  <p>The property is never injected :(</p>
  
  <p>when I use the same dependency on a regular constructor, works without problems.</p>
  
  <p>What am I missing here? Windsort documentation says the container will try to resolve that kind of Properties.</p>