protected void Application_End()
 {
     CastleConfig.Unload();
 }
 public void Application_End()
 {
     CastleConfig.Unload();
     container.Dispose();
 }