title: Spring.Net IoC Application Context
body: <p>I'm having the following "problem".
  I created a application context file for spring.net.
  The configuration looks like this: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;spring&gt;
      &lt;context&gt;
          &lt;resource uri="config://spring/objects"/&gt;
      &lt;/context&gt;
      &lt;objects configSource="SpringObjects.config" /&gt;
  &lt;/spring&gt;
  </code></pre>
  
  <p>I was told that if you change something to the application  context you don't need to recompile your application to see the changes.</p>
  
  <p>How ever if I change something to the configuration file. No changes are seen. It is still the original data that is visible.</p>
  
  <p>I call the application context like this:</p>
  
  <pre><code>IApplicationContext ctx = ContextRegistry.GetContext();
      ManagementConfigurator configurator = (ManagementConfigurator)ctx.GetObject("ManagementConfigurator");
  </code></pre>
  
  <p>Sometimes it takes a while for the changes to be visible (even after recompiling the app).</p>
  
  <p>EDIT: 
  I just found out that you have to restart your application pool. 
  I'll just rephrase my question then: "Can you reload the application context within you application?" 
  Without having to restart the application pool.</p>