Error on RenderAction - No route in the route table matches the supplied values?

Up vote 0 down vote favorite share g+ share fb share tw.

I have a few areas in project. In one area I have a page (razor) and in it I have added RenderAction() method. @{Html.

RenderAction("Index", "Forum");} Application works but when I run in debug mode my code breaks with error on this line (bellow) I press continue and everything works but I must remove this error. No route in the route table matches the supplied values In Global. Asax I add the following route but it doesn't solve the error.

Routes. MapRoute( "Forum", "{area}/{controller}/{action}/{id}", new { area = "Forum", controller = "Home", action = "Index", id = UrlParameter. Optional }); It worked but I don't really understand how?

I added the following code in Global. Asax RegisterRoutes() method: routes. MapRoute( "Forum", // Route name "{area}/{controller}/{action}/{id}", // URL with parameters new { controller = "Forum", action = "Index", id = UrlParameter.

Optional } // Parameter defaults ); asp.net-mvc asp.net-mvc-3 asp.net-mvc-routing link|improve this question edited Oct 26 '11 at 20:07 asked Oct 26 '11 at 19:201110597314 86% accept rate.

Try setting the area route parameter: @{Html. RenderAction("Index", "Home", new { area = "forum" });}.

I have tried that and it doesn't work. See the end of my question. I actually solve this, but I ma not really sure what I did here.

– 1110 Oct 27 '11 at 10:10.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions