title: How to prevent application pool stop, on POST requests?
body: <p>I have a web api service placed on https sub domain. I used castle Windsor to create all classes (per web request), from controller to domain objects. </p>
  
  <p>I tested all actions on local machine and also using fiddler. everything works fine. And no memory leak was happened. and also we have a mobile programmer which worked with all actions and again every thing was fine. </p>
  
  <p>but after hosting on https, by each request to web api urls, application pool stops.</p>
  
  <p>but the request to authorization works fine. What is wrong with my application? here is my code to Config file:</p>
  
  <pre><code> public static class WebApiConfig
  {
      public static void Register(HttpConfiguration config, IAppBuilder app)
      {
  
  
          // Web API configuration and services
          var container =Bootstrapper.WireUp();
  
          ConfigCors(container, config);
  
  
  
          RegisterControllers(container);
  
          UserManagement.Config.Bootstrapper.WireUp(container);
          config.Services.Replace(typeof(IHttpControllerActivator), new WindsorControllerActivator(container));
  
          container.Register(Component.For&lt;IDataProtectionProvider&gt;().ImplementedBy&lt;DpapiDataProtectionProvider&gt;()
               .UsingFactoryMethod(x =&gt; app.GetDataProtectionProvider()));
  
          // Web API routes
          config.MapHttpAttributeRoutes();
          config.AddFiveLevelsOfMediaType();
  
          config.Routes.MapHttpRoute(
             name: "DefaultApiWithAction",
             routeTemplate: "api/{controller}/{action}/{id}",
             defaults: new { id = RouteParameter.Optional }
         );
          config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{id}",
              defaults: new { id = RouteParameter.Optional }
          );
          //config.Routes.MapHttpRoute("DefaultApiWithId", "Api/{controller}/{id}", new { id = RouteParameter.Optional }, new { id = @"\d+" });
      }
  
      private static void ConfigCors(IWindsorContainer container, HttpConfiguration config)
      {
          var cors = new EnableCorsAttribute("*", "*", "*"); 
  
          config.EnableCors(cors);
      }
  </code></pre>