title: No parameterless constructor defined for this object in mvc4
body: <pre><code>using Michell.ClaimsAuditAdmin.Models;
  using Mitchell.ClaimsAuditAdmin.Repositories;
  using Mitchell.ClaimsAuditAdmin.Web.Models;
  using System.Web.Mvc;
  
  namespace Mitchell.ClaimsAuditAdmin.Web.Controllers
  {
      public class ClaimAuditAdminController : Controller
      {  
         private readonly IClaimsAuditAdminRepository claimAuditAdminRepository;
  
  
         public ClaimAuditAdminController(IClaimsAuditAdminRepository claimAuditAdminRepository)
         {
             this.claimAuditAdminRepository = claimAuditAdminRepository;
         }
  
           public ActionResult Index()
          {
              return View("SearchResultTest");
          }
  
          public ActionResult TestView()
          {
              return View("TestView");
          }
  
  
          public ViewResult DisplayClaimAuditView()
          {
             return View("_ClaimAuditAdminView");
          }
  
          public ActionResult SearchResultTest()
          {
              return View();
          }
  
          public ActionResult ClaimAuditReviewFilter()
          {
              //ClaimAuditModel objClaimAudit = new ClaimAuditModel();
              //objClaimAudit.ClaimAudit_ID = 1;
              //objClaimAudit.ClaimAudit_Name = "Claim1";
              //objClaimAudit.FromDate = DateTime.Now.AddYears(-1);
              //objClaimAudit.FromDate = DateTime.Now;
              return PartialView("_ClaimAuditAdminView");
          }
  
  
  
      }
  }
  </code></pre>
  
  <p>I know this question has  been asked many times,but after reading all those SO similar questions i am not able to track my error.I have put the debugger in My controller's Constructor(ClaimAuditAdminController) but debugger doesn't goes there.
  My <strong>Route.Config</strong> is</p>
  
  <pre><code>public class RouteConfig
      {
          public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
              routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "ClaimAuditAdmin", action = "DisplayClaimAuditView", id = UrlParameter.Optional }
              );
          }
  </code></pre>
  
  <p>and the screen shot of my error is</p>
  
  <blockquote>
    <p>Exception Details: System.MissingMethodException: No parameterless
    constructor defined for this object.</p>
    
    <p>Source Error: </p>
    
    <p>An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of
    the exception can be identified using the exception stack trace below.</p>
    
    <p>Stack Trace: </p>
    
    <p>[MissingMethodException: No parameterless constructor defined for this
    object.]    System.RuntimeTypeHandle.CreateInstance(RuntimeType type,
    Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached,
    RuntimeMethodHandleInternal&amp; ctor, Boolean&amp; bNeedSecurityCheck) +0<br>
    System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean
    skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark) +113<br>
    System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,
    Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&amp; stackMark)
    +232    System.Activator.CreateInstance(Type type, Boolean nonPublic) +83    System.Activator.CreateInstance(Type type) +6    System.Web.Mvc.DefaultControllerActivator.Create(RequestContext
    requestContext, Type controllerType) +55</p>
    
    <p>[InvalidOperationException: An error occurred when trying to create a
    controller of type
    'Mitchell.ClaimsAuditAdmin.Web.Controllers.ClaimAuditAdminController'.
    Make sure that the controller has a parameterless public constructor.]
    System.Web.Mvc.DefaultControllerActivator.Create(RequestContext
    requestContext, Type controllerType) +179<br>
    System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext
    requestContext, Type controllerType) +80<br>
    System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext
    requestContext, String controllerName) +74<br>
    System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase
    httpContext, IController&amp; controller, IControllerFactory&amp; factory)
    +197    System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +49<br>
    System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext,
    AsyncCallback callback, Object state) +50<br>
    System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext
    context, AsyncCallback cb, Object extraData) +16<br>
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +301    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +155</p>
    
    <p>-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:4.0.30319;
    ASP.NET Version:4.0.30319.17929 
            }</p>
  </blockquote>