I get this argument exception, for random helpers:

System.ArgumentException: The value
"Castle.MonoRail.Framework.Helpers.UrlHelper"
is not of type "System.String" and cannot be used in this generic
collection.

Parameter name: value
   at System.ThrowHelper.ThrowWrongValueTypeArgumentException(Object
value, Type targetType)
   at Generic.Dictionary`2.VerifyValueType(Object value)
   at Generic.Dictionary`2.System.Collections.IDictionary.set_Item
(Object key, Object value)
   at Framework.Internal.CommonUtils.MergeOptions(IDictionary
userOptions, IDictionary defaultOptions)

On May 4, 1:06 pm, Ricardo Lopes <[email protected]> wrote:
> I created a method on my base controller class that sets the parameters I
> want on the view engine and use that method instead of the castle method.
> I don't if it will get "fixed" because probably is not a bug, just a change
> on the previous behaviour.
>
> 2009/5/4 bdaniel7 <[email protected]>
>
>
>
>
>
> > Great, i'll use the same workaround until is fixed.
>
> > On May 4, 12:33 pm, Ricardo Lopes <[email protected]> wrote:
> > > Hi,
> > > Yes is possible, on RC3 you could use them without having to do nothing,
> > but
> > > it seems that on the trunk version some modifications were made and you
> > have
> > > to pass them by params, see this previous thread on the users mailing
> > list:
>
> > >http://groups.google.com/group/castle-project-users/browse_thread/thr...
>
> > > 2009/5/4 bdaniel7 <[email protected]>
>
> > > > Hello,
>
> > > > I'm trying to use some custom and default helpers ($Url) in some .vm-s
> > > > which are used for to send emails.
> > > > However I only see the text, $Url.For... or my $Format.To(... instead
> > > > of the helper's result.
>
> > > > I've looked in the source code, but I can't figure out whether they
> > > > can be used or not.
> > > > It is possible? if so, do i need to do something extra, besides
> > > > registering the helpers in the controller?
>
> > > > Thanks,
> > > > Dan
>
> > > --
>
> > > Ricardo Lopes
>
> --
>
> Ricardo Lopes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to