Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jacob Polden 67 posts 178 karma points
    Dec 06, 2013 @ 10:20
    Jacob Polden
    0

    Simple login fails - No route in the route table matches the supplied values

    Hi Guys,

    Using Umbraco 6.1.6 and trying to create a simple login using the SurfaceController. When I try to call this in my Login view:

    @Html.Action("MemberLogin","LoginSurfaceController")

    I get this error back

    No route in the route table matches the supplied values.

    My files include:

    • Partial view: MemberLogin.cshtml
    • Model: LoginViewModel.cs
    • Controller: LoginSurfaceController.cs
    My view is calling a method on the LoginSurfaceController that should return the partial. Can't quite understand why it's not working. I have double checked all the names and they match. Very confused.
    Any help greatly appreciated :)
    Jacob

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    Dec 06, 2013 @ 10:48
    Jeroen Breuer
    101

    You probably need to drop the Controller part. Try these examples:

    @Html.Action("MemberLogin","LoginSurface")

    @Html.Action("MemberLogin","Login")

    I think the first one will work.

    Jeroen

  • Jacob Polden 67 posts 178 karma points
    Dec 06, 2013 @ 10:50
    Jacob Polden
    0

    Brilliant, thank you very much :)

  • Ron Mast 9 posts 29 karma points
    Jul 27, 2014 @ 08:17
    Ron Mast
    0

    I find myself with the same error as Jacob.  

    @Html.Action("Index", "ContactForm") in my partial view.

    Partial View: ContactForm.cshtml

    Model: ContactFormViewModel.cs

    Controller: ContactFormSurfaceController.cs

    I'm using version 7.1.4 and following the video on Umbraco.tv. Any help is greatly appreciated. 

  • Ron Mast 9 posts 29 karma points
    Jul 27, 2014 @ 08:32
    Ron Mast
    0

    Doh! It's working for me now...I needed to add "Surface" just like Jeroen suggested above. Thought I tried it and kept getting the error. Umbraco.tv is still good to go :).

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies