title: UnityContainer configured in web.config
body: <p>I have the following code</p>
  
  <pre><code>var container = new UnityContainer();                       //LINE 1
  container.RegisterType&lt;ILogUtility,LogUtil&gt;();              //LINE 2
  var logger = container.Resolve&lt;Logger&gt;();                   //LINE 3
  logger.Log(LogType.Warn, "logging from container");         //LINE 4
  </code></pre>
  
  <p>How do I implement line 2 in web.config such that I will only have to code line 1, 3, and 4 in my code behind? I have searched every where for code example but they are not clear. </p>
  
  <p>Thanks</p>