Copied to clipboard

Flag this post as spam?

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


  • Mark Watson 118 posts 384 karma points
    Dec 20, 2019 @ 01:40
    Mark Watson
    0

    No route in the route table matches the supplied values in Umbraco Cloud v8

    I have been following Pauls tutorial on setting up a simple login and keep getting the error enter image description here

    I have the same code on Paul Seals tutorial except for the login template where I use

    @inherits Umbraco.Web.Mvc.UmbracoViewPage
    @{
        Layout = null;
    }
    
    @{ Html.RenderAction("RenderLogin", "Member"); }
    

    Does anyone know if you need to change anything for Umbraco Cloud v8.

  • Pasang Tamang 258 posts 458 karma points
    Dec 20, 2019 @ 02:55
    Pasang Tamang
    0

    Hi Mark,

    This is the problem you get when your controller does not inherit SurfaceController. In Umbraco, SufraceController are auto routed. It's used to handle form submission and render MVC child actions. Detail about using controllers in Umbraco can be found in below links

    https://our.umbraco.com/documentation/implementation/Controllers/

    https://our.umbraco.com/documentation/Reference/Routing/surface-controllers

    Hope this helps you to sort out your problem.

    Thanks

  • Mark Watson 118 posts 384 karma points
    Dec 20, 2019 @ 03:26
    Mark Watson
    0

    Thanks Pasang

    I am fairly new to Umbraco.

    I have changed to

    @inherits Umbraco.Web.Mvc.SurfaceController
    

    But now getting enter image description here

  • Pasang Tamang 258 posts 458 karma points
    Dec 20, 2019 @ 04:56
    Pasang Tamang
    0

    Hi Mark,

    SurfaceController inherit is not meant to be in view file. It has to be in controller class file. @{ Html.RenderAction("RenderLogin", "Member"); } here Member is indicating your controller. You need to change in your Member controller so your controller code should be like public class MemberController : SurfaceController

    Hope this is more clear to you.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft