asp.net mvc - Error when accessing anything but default route -


To work on Mono having trouble me in routing

  routes. MapRoute ("HelloRoute", "Hello / {Name}"  

, New {Admin = "Home", Action = "Hello"}); Routes.MapRoute ("default", "{controller} / {action} / {id}", new {controller = "home", action = "index", id = ""}});

And I related action on my HomeController:

  public ActionResult Index () {ViewData [ "Message"] = "Welcome to ASP.NET MVC on Mono! "; See Return (); } Public activity Hello (name of string) {View data ["message"] = "hello" + name; See Return (); }  

Now if I do I get a message to navigate ... but if I go, I get an error:

  value name Controller does not match any value  

Description: HTTP 500 error processing request

Stack trace:.

System.InvalidOperationException: The name of the value does not match any of the controller value. System.Web.Routing.RouteData.GetRequiredString (System.String valueName) [0x00000] on System.Web.Mvc.MvcHandler.ProcessRequest (System.Web.HttpContextBase HttpContext) [0x00000] on System.Web.Mvc.MvcHandler.ProcessRequest (System.Web.HttpContext HttpContext) [0x00000] System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext HttpContext) [0x00000] on System.Web.HttpApplication + c__Iterator2.MoveNext (on) [0x00000] [0x00000] at System.Web.HttpApplication.Tick ()

Am I doing something obviously wrong?

Apart from the aditional route, from the action and viewing it is a standard ASP.NET MVC project created in monodevelop.

It looks like a bug in ASP.NET MVC templates mono developed, as this The comments section has been suggested in the section.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -