Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search no longer works after creating a Person #1

Open
rogerstewart opened this issue Oct 1, 2014 · 2 comments
Open

Search no longer works after creating a Person #1

rogerstewart opened this issue Oct 1, 2014 · 2 comments

Comments

@rogerstewart
Copy link

While following along in the book I found the following issue that can be reproduced with the repo.

  • Load /Person/Index and verify Search functionality works.
  • Navigate to /Person/Create and create a new Person.
  • Clicking Create adds the person to the database and redirects to /Person/Index.
  • Attempt to use Search again and it does nothing.
    • Firebug shows a response of 404 with the following exception contained within:

      [HttpException]: The controller for path '/SearchPeople' was not found or does not implement IController.
      at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
      at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
      at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
      at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
      at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
      at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
      at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

@MisterJames
Copy link
Owner

Hey @rogerstewart, sorry for the delay here. I'll try to address this ASAP.

@joeruder
Copy link

Hello;
I am having the same issue, but it seems to not be directing back to /Person/Index but just /Person.
If I manually go to /Person/Index it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants