[Mono-aspnet-list] Does MVC3 areas work with mono?

FedorV vinogradovf at gmail.com
Wed Aug 22 03:19:48 UTC 2012


I'm new to mono. 
I have an area in my MVC3 project, very simple one, just one action:

public override void RegisterArea(AreaRegistrationContext context)
{
	context.MapRoute(
		"api_signin",
		"api/account",
		new { controller = "Auth", action = "SignIn" }
	);
}

When I run it on windows - all works fine. But on my ubuntu with mono 2.10.8  
Url.Action("SignIn", "Auth", new { area = "Api" }) returns empty string

both 
@Html.ActionLink("bla", "SignIn", "Auth", new { Area = "Api"}, new {} ) 
and 
@Html.ActionLink("api", "SignIn", new { area = "Api", controller = "Auth" }) 
return wrong route with different controller name and different action name.

So, is it I did something wrong or Mono doesn't support areas?



--
View this message in context: http://mono.1490590.n4.nabble.com/Does-MVC3-areas-work-with-mono-tp4656348.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list