Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 211261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:04:46+00:00 2026-05-11T18:04:46+00:00

I am having trouble getting routing to work on mono. The default route works

  • 0

I am having trouble getting routing to work on mono. The default route works fine but nothing else does.

These are the routes I have setup:

        routes.MapRoute(
            "HelloRoute",
            "Hello/{name}",
            new { controller = "Home", action = "Hello" }
        );

        routes.MapRoute(
            "Default",
            "{controller}/{action}/{id}",
            new { controller = "Home", action = "Index", id = "" }
        );

and on my HomeController I have the corresponding action:

    public ActionResult Index ()
    {
        ViewData["Message"] = "Welcome to ASP.NET MVC on Mono!";
        return View ();
    }

        public ActionResult Hello(string name)
    {
        ViewData["Message"] = "hello "+name;
        return View ();
    }

now if I navigate to http://localhost/ I get the message Welcome to…
but if I go to http://localhost/Hello/World I get an error:

value name controller does not match any of the values.

Description: HTTP 500. Error processing request.

Stack Trace:

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

am I doing something obviously wrong?

Apart from the aditional route, action and view this is a standard asp.net mvc project created in Monodevelop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:04:46+00:00Added an answer on May 11, 2026 at 6:04 pm

    Turns out that this was a bug in the mono routing implementation.

    I filled a bug report here: https://bugzilla.novell.com/show_bug.cgi?id=500739.
    And it has now been fixed, although I haven’t tried it yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some trouble getting Elmah to work with url routing in an
I'm having trouble getting the following to work in SQL Server 2k, but it
I having trouble getting append() to work in safari for some reason, but it
I am having a bit of trouble with getting routing to work with single
I'm having trouble getting a rotary encoder to work properly with AVR micro controllers.
Having trouble getting this to work. What's strange is that I have 10 bookmarks
I'm having trouble getting my rspec routing tests working with a subdomain constraint. Specifically
I'm having trouble getting a filter to work on a BindingSource that is the
I am having trouble getting this to work. I have variables initiated in main
I'm having trouble getting the follow code to work in Internet Explorer, it doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.