Bug 4649 - MapPageRoute not working with a variable as a routeURL parameter.
Summary: MapPageRoute not working with a variable as a routeURL parameter.
Alias: None
Product: Runtime
Classification: Mono
Component: General ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-04-25 14:36 UTC by krefftc
Modified: 2012-04-25 16:43 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description krefftc 2012-04-25 14:36:02 UTC
The following does not work. An exception does not get thrown, the server just returns a 404 file not found.

routes.MapPageRoute("get", "get/{transactionCode}", "~/GetTransaction.aspx");

But this works fine:
routes.MapPageRoute("get", "get", "~/GetTransaction.aspx");

Mono JIT compiler version 2.10.5 (Debian 2.10.5-1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)

        protected void Application_Start(object sender, EventArgs e)
        protected void RegisterRoutes(RouteCollection routes)
           routes.MapPageRoute("get", "get/{transactionCode}", "~/GetTransaction.aspx");
Comment 1 krefftc 2012-04-25 16:43:56 UTC
It was ignoring my global.asax because I had configured apache wrong and it was using another application's global.asax. Sorry.