[Mono-aspnet-list] asp.net MVC issues

kasper22 mono at bryanbrownreptiles.com
Sat Apr 11 19:24:59 EDT 2009


Hi,


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
details.


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)
[0x000ab] in
/home/bryan/Downloads/mono-2.4/mono-2.4/mcs/class/System/System.ComponentModel/TypeDescriptor.cs:378 
  at System.Web.Mvc.DefaultModelBinder.BindModel
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ModelBindingContext bindingContext) [0x00000] 
  at System.Web.Mvc.ControllerActionInvoker.GetParameterValue
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ParameterDescriptor parameterDescriptor) [0x00000] 
  at System.Web.Mvc.ControllerActionInvoker.GetParameterValues
(System.Web.Mvc.ControllerContext controllerContext,
System.Web.Mvc.ActionDescriptor actionDescriptor) [0x00000] 
  at System.Web.Mvc.ControllerActionInvoker.InvokeAction
(System.Web.Mvc.ControllerContext controllerContext, System.String
actionName) [0x00000] 


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?


Thanks
Bryan

-- 
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...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20090411/63a0ff74/attachment.html 


More information about the Mono-aspnet-list mailing list