title: Web API controller not working after several hits
body: <p>After several hits Web API controller stopped loading but it starts working when I restarted it from IIS.</p>
  
  <p>I am testing the API in the browser.</p>
  
  <p>here is my controller with 2 query string for credential:</p>
  
  <pre><code>  [System.Web.Mvc.OutputCacheAttribute(VaryByParam = "*", Duration = 0, NoStore = true)]
      public class TestController1 : ApiController
      {
          [HttpGet]
          public HttpResponseMessage TestController1(string Username, string Password)
          {
              bool isvalid;
              string id = string.Empty;
  
  
              isvalid = //cheking credentials;
  
              if (isvalid)
              {
                  var obj = //getting data from DB;
                  if (obj.Count == 0)
                  {
                      HttpResponseMessage msg = new HttpResponseMessage(HttpStatusCode.NotFound)
                      {
                          Content = new StringContent(string.Format("Data not found", id)),
                          ReasonPhrase = "Localized message Data not found!"
                      };
                      return msg;
                  }
                  else
                  {
                      return Request.CreateResponse(HttpStatusCode.OK, obj);
                  }
              }
              else
              {
                  HttpResponseMessage msg = new HttpResponseMessage(HttpStatusCode.Unauthorized)
                  {
                      Content = new StringContent(string.Format("UserName or Password is Invalid")),
                      ReasonPhrase = "Identity not found!"
                  };
                  return msg;
              }
          }
  
      }
  </code></pre>