title: Make sure that the controller has a parameterless public constructor
body: <p>I get this error</p>
  
  <blockquote>
    <p>An error occurred when trying to create a controller of type 'AnalyticController'. Make sure that the controller has a parameterless public constructor.</p>
  </blockquote>
  
  <p>Code works in test environment but not on the production server.</p>
  
  <p>Any idea what could cause the problem?</p>
  
  <p>This is my controller </p>
  
  <pre><code>public class AnalyticController : ApiController
  {
      private AnalyticBLL analyticBLL = new AnalyticBLL();
  
      // POST api/status
      public void Post(AnalyticDTO analyticDTO)
      {
          if (!analyticBLL.Register(analyticDTO))
              helpers.BusinessLayer.CreateResponseException(analyticBLL.Errors);   
      }
  }
  </code></pre>