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.
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 :).
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:
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
Brilliant, thank you very much :)
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.
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 :).
is working on a reply...