[Mono-aspnet-list] asp.net MVC issues
mono at bryanbrownreptiles.com
Sat Apr 11 19:24:59 EDT 2009
I'm creating a simple little application using the asp.net MVC and I'm
hitting a lot of strange little issues. None of them are really show
stoppers, but they make working with it on Mono more inconvenient.
The biggest issue is that ViewPages don't work if strongly typed. See
http://go-mono.com/forums/#nabble-to22840455 strong type issue for more
The next biggest issue I've run into is binding. If I try the "auto
binding" that the MVC does I get a null reference exception. (this worked
fine on a windows box)
System.ArgumentNullException: Argument cannot be null.
Parameter name: type
at System.ComponentModel.TypeDescriptor.GetConverter (System.Type type)
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000]
System.Web.Mvc.ParameterDescriptor parameterDescriptor) [0x00000]
System.Web.Mvc.ActionDescriptor actionDescriptor) [0x00000]
(System.Web.Mvc.ControllerContext controllerContext, System.String
The last issue I'm seeing isn't really an exception, but just the URLs
behaving oddly. I'm using the Html.ActionLink method and with a link like
this: Html.ActionLink("Home", "index", "home") I would expect it to produce
the url "/home" since by the routing rules the default action is index.
However it is giving me the link "/home/index/" so there are two things
"wrong" with this. First I'm seeing the action which shouldn't be shown and
second I have a trailing slash for some reason. This works fine, it just
looks like crap, and has extra information that shouldn't be there.
Can anyone confirm these are bugs or are all these issue just due to Mono
working a little different from .Net?
View this message in context: http://www.nabble.com/asp.net-MVC-issues-tp23006435p23006435.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-aspnet-list